Learn Linux with the Raspberry Pi

Learn Linux with the Raspberry Pi

The fourth article in our guide to getting started with the Raspberry Pi dives into the Linux command line.

Command line prompt
Image by : 



Get the newsletter

Join the 85,000 open source advocates who receive our giveaway alerts and article roundups.

In the third article in this series on getting started with Raspberry Pi, I shared info on installing Raspbian, the official version of Linux for Raspberry Pi. Now that you've installed Raspbian and booted up your new Pi, you're ready to start learning about Linux.

It's impossible to tackle a topic as big as "how to use Linux" in a short article like this, so instead I'll give you some ideas about how you can use the Raspberry Pi to learn more about Linux in general.

Start by spending time on the command line (aka the "terminal"). Linux window managers and graphical interfaces have come a long way since the mid-'90s. Nowadays you can use Linux by pointing-and-clicking on things, just as easily as you can in other operating systems. In my opinion, there is a difference between just "using Linux" and being "a Linux user," and the latter means at a minimum being able to navigate in the terminal.

If you want to become a Linux user, start by trying out the following on the command line:

  • Navigate your home directory with commands like ls, cd, and pwd.
  • Create, delete, and rename directories using the mkdir, rm, mv, and cp commands.
  • Create a text file with a command line editor such as Vi, Vim, Emacs, or Nano.
  • Try out some other useful commands, such as chmod, chown, w, cat, more, less, tail, free, df, ps, uname, and kill
  • Look around /bin and /usr/bin for other commands.

The best way to get help with a command is by reading its "man page" (short for manual); type man <command> on the command line to pull it up. And make sure to search the internet for Linux command cheat sheets—you should find a lot of options that will help you learn.

Raspbian, like most Linux distributions, has many commands and over time you will end up using some commands a lot more than others. I've been using Linux on the command line for over two decades, and there are still some commands that I've never used, even ones that have been around as long as I've been using Linux.

At the end of the day, you can use your graphical interface environment to get work done faster, but make sure to dive into the Linux command line, for that's where you will get the true power and knowledge of the operating system.

About the author

Anderson Silva - He grew up in Brazil, and wrote his first program at the age of 10 using Logo. He moved on to programming in BASIC shortly thereafter, and by the time he was in High School he was coding in Pascal. When he started college in the US, he learned C, C++, Java and had several developer jobs programming with server-side languages for web development like: Coldfusion, Perl, Php, etc. He was introduced to...