// learn · linux · rhcsa · 10 min

Linux command line essentials.

The shell is just a program that runs other programs. Watch commands run live in a simulated terminal — six steps from 'what's that $ symbol?' to chaining commands with pipes.

Linux command line essentials animated tutorial. Shell, navigation, file operations, viewing files, redirection, and pipes. Covers RHCSA EX200 exam objectives for shell basics.
// command line essentials

A few commands and a few symbols get you 90% of what you'll need at the Linux shell every day. Watch the terminal below as you step through.

// before you start
you should know
  • ·Roughly what a 'file' and a 'directory' (folder) are
  • ·Knowing how to open a terminal app on your computer
  • ·Nothing else — this is the on-ramp
by the end you'll

Move around the filesystem, create/copy/delete files, read files, send command output to files, and chain commands with pipes.

pace: 10 minutes

bash — terminal — step
student@laptop ~ $echo Hello
Hello
student@laptop ~ $whoami
student
student@laptop ~ $date
Sun May 24 14:32:10 UTC 2026
student@laptop ~ $
step 1 / 6

The shell and the prompt

When you open a terminal you're running a 'shell' — a small program whose only job is to take a line of text from you, find the command you named, and run it. On Linux that shell is usually Bash. The $ symbol (called the prompt) means 'I'm ready for your next command'. Try typing the command name, optional flags starting with -, and arguments — all separated by spaces.

// key insight

The Unix philosophy: do one thing well, and connect with pipes. Every command you learn is a building block. grep alone is useful; cat | grep | sort | uniq -c | head is engineering. Build the habit of asking "is there a command that does just this one step?"

// survival commands · the daily 25
$pwd
$ls / ls -la
$cd DIR / cd ..
$cd ~ / cd -
$touch FILE
$mkdir -p PATH
$cp SRC DST
$cp -r DIR DST
$mv SRC DST
$rm FILE / rm -rf DIR
$cat FILE
$less FILE
$head -N / tail -N
$tail -f FILE
$grep PATTERN FILE
$wc -l
$sort / sort -n
$uniq -c
$find PATH -name PAT
$history
$man CMD
$CMD --help
$which CMD
$Ctrl-C
$Ctrl-R, then type
// check yourself
4 quick questions
Q1

You want to change to your home directory and see what's there. Which two commands?

Q2

You want to save the output of `ls /etc` into a file called list.txt — replacing whatever's already in list.txt. Which symbol?

Q3

Why does rm -rf / on Linux destroy almost everything?

Q4

What does the pipe character | do?

These aren't graded — they're just for active recall, which is what actually makes the lesson stick.

🎮
// now exercise it

Try the Bash Command Challenge

Reading is one thing — typing the command yourself is what makes it stick. 37 challenges across Easy, Medium, and Hard. Free play, no timer required.

play →
back to RHCSA trackall lessons