Skip to content
Back to lessons
BeginnerLesson 1 of 5 · 1 min read

Getting Started with Linux

What Linux is, the shell, and your first commands.

Linux is a free, open-source operating system kernel that powers everything from phones to supercomputers. Most servers on the internet run Linux, and it is the single most important skill for anyone in DevOps, cloud, or backend development.

What is the shell?

The shell is a program that takes commands from your keyboard and gives them to the operating system. The most common shell on Linux is called bash.

When you open a terminal, you see a prompt that ends with a dollar sign $. Everything you type after that prompt is a command.

Your first commands

Try these in the terminal on the right:

whoami          # show your current user
date            # show the current date and time
echo hello      # print "hello"
clear           # clear the screen

Lines that start with # are comments; the shell ignores them. They are just for you.

Why learn the command line?

  • Far faster than clicking through menus.
  • Automatable; write a script once, run it forever.
  • Works the same on a tiny VM or a giant cluster.

When you're ready, hit Mark complete and move to the next lesson.

Your notes

Notes are kept on this browser only.

Challenge

Use a single command to print the word `linux` to the screen.

Need a nudge?

Tip: type the command in the sandbox on the right, or paste the solution here. The sandbox runs in real time.

Quiz

Answer these to lock in the concepts. Score at least 80% to mark the lesson complete.

Mark as complete

Skipped the challenge? You can mark this lesson done by hand.