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.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.
- ·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
Move around the filesystem, create/copy/delete files, read files, send command output to files, and chain commands with pipes.
pace: 10 minutes
echo HellowhoamidateThe 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.
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?"
$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 typeYou want to change to your home directory and see what's there. Which two commands?
You want to save the output of `ls /etc` into a file called list.txt — replacing whatever's already in list.txt. Which symbol?
Why does rm -rf / on Linux destroy almost everything?
What does the pipe character | do?
These aren't graded — they're just for active recall, which is what actually makes the lesson stick.
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.