How To: Extract An .rar File

Today, we’re going to learn how to extract an .rar file in Linux. You don’t see .rar files all that often with Linux, but sometimes they crop up. Today’s article will explain how to extract them.

You may recall .rar files from your Windows days, assuming you have a history with Windows – as many of us Linux users do. You’d probably be most familiar with the application known as ‘WinRAR‘. 

While the application is specifically for Windows (there’s a text-based WinRAR for Linux, perhaps a subject for another article), it produces files compressed with the .rar format. The .rar compression is much like any other compression, from .tar.gz to .zip. At some point, you may be faced with opening one while you’re using Linux.

Just because the files are often made with WinRAR doesn’t mean the files will only be opened in Windows. Once in a while, you’ll find something you need that’s in .rar format and you’re using Linux. Well, fear not, you can extract an .rar file easily enough. It’s just a simple terminal command away and you should be all set. While not a skill you’ll need often, it’s one you’ll maybe need and now is a good enough time to learn how.

Extract An .RAR File:

This article requires an open terminal, like many other articles on this site. If you don’t know how to open the terminal, you can do so with your keyboard – just press CTRL + ALT + T and your default terminal should open.

Once you have the terminal open, you’ll need to install an application called ‘unrar’. If you’re using a major distro, it’s likely in your repository – though maybe under the name of ‘unrar-nonfree’. Search your repositories and you’ll find it.

If you’re using Debian/Ubuntu/similar then it’s easy enough – it’s called ‘unrar’ and you install it with:

With that installed, the next part is really quite easy:

That will extract the contents of the .rar file while preserving paths. If you don’t care about that sort of result, just use the ‘e’ flag like this (and it’ll extract everything to the current directory):

You can also extract password protected content easily enough, just read the man pages with man unrar to learn how. Anything you can do with a GUI you can do with the terminal. You just need to read the man page. This article only covers how to extract an .rar file without any complexity.

Closure:

That’s it. That’s today’s article. The goal was to learn how to extract an .rar file in Linux and now you know how to do so with unrar and the Linux terminal. ‘Snot all that complicated, really.

Thanks for reading! If you want to help, or if the site has helped you, you can donate, register to help, write an article, or buy inexpensive hosting to start your own site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

macOS vs Linux: Comparative Analysis

macOS vs Linux: Comparative Analysis

 

BSD code is the base of macOS, which is developed under the banner of Apple Incorporation. The Unix-based operating system is developed with the use of languages like C, C++, etc. In 2001, the first version of macOS was introduced. This OS is in the second position in the world to be used highly on computers.

Linux is independently developed with a system similar to Unix. The systems where Linux plays a crucial role are named mobile devices, cloud computing, servers, personal computers, supercomputers, etc. In 1991, the first version of Linux was introduced to the world.

Linux can be easily downloaded and used. In comparison to Linux, Windows is high in demand and not available for free. macOS is picked up by specific users who can spend a specific amount from their pocket because it is designed by Apple and costs too much. Even though it is not affordable for all Windows users.

Both of these systems are not compatible with binary codes. The applications based on macOS cannot be used like open sources.

To know more about the differences and similarities of these operating systems, please have a look over the listed headings underneath. The doubts that can annoy you when deciding Mac vs. Linux are going to be sorted in the sections mentioned underneath.

Is it good to use macOS and Linux together?

People who have used Linux for years and are now using Apple’s Mac think MacOS is good to go. If you are a Mac user, you can use Mac OS X. To fulfill all your needs with Linux; you need to get another computer. You can look for a cheaper choice where Linux will work.

Is it possible to switch to macOS from Linux?

Yes, it is easy. You need to take care while doing this so that you can avoid data loss or damage. The entire process of macOS installation should be done properly, along with a recovery partition.

 Which is safer – Linux or macOS?

For a few reasons, Linux is considered safe in comparison to Windows and macOS. But, still, there are some flaws and exploits due to which Linux does not stand at the top.

The use of these operating systems depends upon the needs of the user and his/her preferences. If we talk about higher usage of the OS, then it’s only Windows.

Is It possible to install Linux on an old iMac?

Installing Linux into the old iMac computer is not an issue. For this task, you don’t need to take tension as you do not need to use any specific Mac Distro. Any of the distros can be downloaded and installed. a 64-bit distro will be a better choice to make the Old iMac be used with Linux.

If you are not able to download Linux, there might be a problem with your internet connection. Check out https://setapp.com/how-to/fix-your-connection-is-not-private-error to resolve the error.

 Which version of Linux is good to use with macOS?

The free versions of Linux to be used with Mac are — Linux Mint, Fedora, and ArcoLinux. Linux, which is easily accessible to anyone, was created by Linus Torvalds and owned by many authors (as they worked over source codes) with the GPLv2 license.

Drawbacks of Linux OS 

  • No standard environment for the desktop usage
  • No way of proper single presentation for packaging software
  • No proper and good support for games
  • Rare availability of desktop software

Downsides of macOS 

  • Mac does not allow to perform required customization
  • The gaming experiences of Mac users are not good to the date
  • The creation of new files becomes an issue on Mac devices
  • The macOS does not allow to make a jump list like Windows

Is there an issue if Linux dual-boot is being performed on a Mac device?

With Boot Camp, the process of Windows installation is easy on the Mac system. But, this process is not good to go if you want to do this for Linux. It is a tough task to be performed. If you still want to do this, you need to try it with the use of a USB or CD drive.

Why should you go for Linux in comparison to Mac?

Linux is a safer choice in comparison to Windows and Mac. With this OS, you can simply keep the malware and viruses away. The security codes and aspects involved in Linux are helpful in keeping your computer safe. Still, if you want to be more protected, then ClamAV antivirus can be used with Linux.

macOS has always had a specific clientele who love to play games flawlessly, and Linux is being loved by users who are set to program & develop formulas and codes. Choosing any of these OS is not easy, but priorities and specifications can help you to make the right decision.

Change Your Hostname

In today’s article, we’re going to learn how to change your hostname in Linux. It’s a pretty easy article to follow along with, so even if you’re a beginner you can follow along. If you’re an advanced user, you probably already know how to do this. If not,  you will now.

So, what is your hostname? Basically, it’s the name of your computer (generally speaking). You login as <your_username> to a computer referred to by its <hostname>. So, in this case, I’m currently kgiii@kgiii-lmde. The ‘kgiii-lmde’ is the hostname. When you open your terminal, in all likelihood it shows you the <user>@<hostname> at the start of your regular prompt.

You can do some neat stuff with the hostname. For instance, and depending on the distro, it’s often local or localhost, you can connect to your LAN devices (without knowing the IP address) by connecting to <hostname>.local. This is handy for using SSH around the house, or even for using FTP or whatever.

If you don’t know your hostname, you can use one of the following commands to figure it out:

Or you can try:

There are other ways to show the hostname, but those two should be enough to get you sorted out. Either of them will happily spit out the hostname. Now that you know your hostname, it’s time to learn how to …

Change Your Hostname:

Like so many other articles on this site, this one requires an open terminal to continue. So, just press CTRL + ALT + T and your default terminal should open.

With your terminal open, enter the following command:

That should permanently change your hostname to the new hostname you chose to use in the command. You can actually change it temporarily, it will not be persistent between reboots, with the hostname command. to do that you’d just sudo hostname <new_hostname> and it’ll change it for the current session only.

To verify that you’ve changed your hostname, run one of the commands listed in the preamble section of this article. (Just type hostname and to verify you know how to change your hostname.)

Anyhow, that’s all there is to it. You really don’t need anything more than that if you want to change your hostname in Linux. Anyone should be able to follow the few directions needed.

Closure:

There you have it, another article. To think, we’re over 200 articles now. This is just one more among many, and this one is easy enough to follow. If you ever wanted to change your hostname, now you know…

Thanks for reading! If you want to help, or if the site has helped you, you can donate, register to help, write an article, or buy inexpensive hosting to start your own site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

Meta: 200th Post

Today’s article is just a quick note, nothing long or important, that marks our 200th post. It has been a long time coming, but it’s finally here. I’ve had some help along the way, but I’ve written all but a few of the articles. Yeah, we’re at 200 articles on Linux-Tips.

I initially said I’d do this for a year. That year passed a while ago and I’m still going. I’m still not out of ideas for articles, so I keep writing them. Of course, getting to do a non-article type of thing (like this) provides a bit of a break from writing the regular types of articles.

I’ve done these meta types of posts before. In those posts, I pointed out ways you could help. None of you seemed all that interested in helping, so I’ll just skip that section this time around. If you want to help,  you know how to do so. If not, well… I’ll just keep doing it by myself. After all, I got us to the 200th post!

At The 200th Post Mark:

So, the site’s search engine traffic is growing slowly but steadily. In the past 28 days, I’ve had 3100+ visits from just Google. Overall, site traffic increases a little and we’re hovering at about 7500 unique visitors per month. They visit about 13,000 times each month. This excludes bot/scraper traffic, of course. I get quite a bit of non-human traffic but it makes no sense to include them in my records.

The search engine traffic is nifty. They’re most interested in:

screenfetch vs. neofetch
changing the default terminal
Ubuntu’s restricted errors

Those three pages and search terms (combined) make up most of the search engine traffic we get. We rank in the top 10 for a whole mess of keywords. I’m not quite sure how that happened, but I’m glad it did.

That traffic is mostly from the United States, with 80% of the traffic being Linux users – most of whom using Chrome as their browser. However, a large chunk (35%) are unknown browsers. 

The average user also spends about 3m 12s on the site. Excluding those visitors from search engine results, the most frequent referrer is Linux.org. Imagine that? I think that’d be expected. Also to be expected, Linux.org visitors tend to be repeat visitors more than any other visitors – and are so by a very wide margin.

Closure:

I’m not sure what other stats you’d be interested in. Long gone are the days where I visited more than anyone else (meaning the admin control panel was the most opened page). It hasn’t been like that since about a month after I got the site finished. If you’re interested in any other stats, I’ll see what I can dig out – just ask.

The search engine traffic amazes me. I’m always a bit surprised to see so many people using my site – with so few questions, meaning I must be doing something right. Once in a while I get a correction, and I always appreciate that. Google refers to my site as ‘high traffic’ but I’m not sure what they compare us with. Sure, most sites get no traffic, but we really don’t get that much traffic.

Anyhow, we’ve hit 200 articles as of this one – which isn’t really much of an article. Still, I’m gonna count it and let’s hope we get to 400! I suppose we just might get there, but it’s gonna be a long road with a whole lot more articles than I ever dreamed I’d write. So, we shall see!

Thanks for reading! If you want to help, or if the site has helped you, you can donate, register to help, write an article, or buy inexpensive hosting to start your own site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

Running Away From Windows

There are many new Linux users, people interested in Linux, that are running away from Windows. Instead, what they should be doing, is running towards Linux. When asked ‘who should use Linux’, my answer would be ‘anyone that wants to’. But, in all the years I’ve been involved in the community, I’ve learned a few things about who is most likely to have more success. 

Today’s article won’t be tech or jargon, or even a how-to… It’s just a bit of a short essay about some observations made over the years. As I said above, I’ve learned a few things. Let me try to explain them as best as I can. (Besides, it’s a nice day to not do a how-to article. A change of pace is always a good idea.)

Important: I don’t want to seem elitist. This is not about elitism – it’s about your point of view and your reasons for the actions you take.

In fact, I figure pretty much anyone can learn to use Linux if they want to and they’re sufficiently motivated to do so. But, I find those that ask the most questions and need the most help are those who are running away from Windows instead of running towards Linux. The folks that are running towards Linux are the ones that read the documentation, search before asking questions, study the books, troubleshoot effectively, etc…

Let me try to distill this into easy to grasp concepts:

A person who is running away from Windows says, “I hate Windows! I’m switching to Linux!” 

A person who is running towards Linux says, “I’m curious about how Linux works, and I want to make it work for me.”

They’re two very different mentalities and, as one might expect, often have very different results. No, not always will the results be different – I’m speaking about averages and observations. It’s very much possible to run away from Windows while becoming a very proficient Linux user. The opposite is also true, you can run towards Linux and fail. This post just speaks to generalities. Outliers exist.

Running Away From Windows:

These folks tend to ask questions that can be easily answered. They rely on you to do the work for them, and expect to be spoon-fed the help they need. I saw a good example thread today where someone was asking about Python and when they were fed all the information they needed, they responded with “… Now what?”

These people fight with Linux rather than embrace it. They never take the time to understand that Linux is not Windows. They’re not that interested in actually learning to use Linux, they’re interested in not using Windows.

Six months later, they’re still  making the same mistakes only now they’re convinced that Linux is broken – and they have the answers about how to ‘fix’ Linux. When they wear out the welcome mat at one support forum, they’ll move to another. Odds are very good that they won’t use Linux for a full year before they quit. They’ll go back to Windows for various reasons, but mostly because they refused to learn. They’ll say things like how Linux is too hard, not ready for mainstream, or fundamentally flawed to the point where it’s not useful as a desktop operating system (even though many, many millions of us do so every day).

Think of it like a zombie movie… The people who are running away are the ones that get captured and eaten. They spend half their time looking back to see what’s chasing them. Their fear leads them to irrational decision making. They lack purpose, confidence, and cognition simply because of their mindset. It doesn’t have to be that way. What they could have been doing was running towards something – like a weapon and higher elevation.

Running Towards Linux:

Now these are the folks I prefer – and for obvious reasons. They’re hungry for knowledge and really eager to learn as much as they can. They’ll burn out, of course, but quite a few will make it through and maybe become proficient forum helpers themselves some day. You can spot ’em pretty easily. They have laser focus. That is, they have clear goals that can be articulated, and the drive needed to reach those goals.

They ask precise questions – questions that can actually be answered. If you want, you can just give them a few keywords and send them out searching on their own, knowing that they’ll do just that. They’re the types of people who try, try, and try again – and then ask for help about the specific area where they got stuck.

They don’t want to be spoon fed, unless they ask for a detailed answer. They don’t need to be spoon fed, because after reading your answer they either understand or they’ll go searching to find more information. They are ‘self-starters‘ with ample motivation.

I don’t want to say that these are the kinds of people who should be using Linux. After all, I think everyone can use Linux – provided they put the effort into learning. (I think people also tend to overlook how long it took them to become truly proficient with Windows, Apple, or whatever OS it was they have been using. They seem to expect their prior knowledge to be some sort of shortcut, even though it’s not that applicable ’cause Linux ain’t Windows!)

But, I will say that those people running towards Linux are more likely to have a better time of it, and remain a Linux user longer, than those who use Linux because they’re running away from Windows. If you’re going to decide to use Linux, make sure you have good reasons to do so. Run towards the goal, not away from a fear. The motivation behind switching to Linux matters.

Final Thoughts:

When you’re running away from something, you’re not making good choices. You’re not looking where you’re going. You stumble and fall and the zombies chasing you end up cracking open your skull to dine on the delicious gushy bits within. 

When you’re running towards something, you’re focused. You don’t just want success, you want to get there as rapidly and as best as you can. You want to know everything you need to know to win the race and you’re motivated to pull yourself up over and over again.

So, before you decide to give Linux a try, you should stop and think about why you’re doing so. Are you running away from something? If you are, maybe think about it a while longer and try Linux when you’re running towards it as a goal – and not when running away from something else as your priority.

The goals and priorities are very different for each mentality and you’ll have a far better time if you’re running towards Linux than you’ll have if you’re running away from Windows (or Apple, or Chrome, or whatever else you might be using).

Just some food for thought.

Me? I ran towards Linux because I wanted something new. I wanted new challenges – and a familiarity of the old (I was a Unix user for part of my life). Additionally, I wanted the comfort that comes from knowing my operating system is gonna be just fine and that I don’t have to worry about it. Plus, I wanted to experience Linux on the desktop as my sole operating system.

Learning new ways of computation was a goal, as was understanding my computer better. I’m happy for those choices and goals and every time I sit down at my computer, I’m still running to meet those objectives. Every day, I make certain to learn more about Linux than I knew the day before.

For the record, I don’t mind Windows users. They don’t concern me. If it works for them, it works for them. ‘Snot my job to change their views. If they want to run towards Linux, we’ll be here to help them. Use the tools you need to get the job done. If that’s Windows, it’s no skin off my back. My ego isn’t so frail that I need people to agree with me about desktop operating system choices. But, don’t switch because you’re mad at Windows, switch because you want to love Linux.

Thanks for reading! If you want to help, or if the site has helped you, you can donate, register to help, write an article, or buy inexpensive hosting to start your own site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

Subscribe To Our Newsletter
Get notified when new articles are published! It's free and I won't send you any spam.
Linux Tips
Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.