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 : 

Subscribe now

Get the highlights in your inbox every week.

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 was introduced to Linux by his uncle back in 1996. In the early 2000s Anderson transitioned from being a developer to a system administrator/release engineer. He joined Red Hat as an IT Release Engineer in 2007. As of 2021, he is the Director of Incident Response @ Red Hat's Information Security Team. He currently holds an RHCE and an expired RHCA and is an active Fedora package maintainer...