Basic Linux Commands Every Beginner Should Know
Coming from our basic terminal guide? These are the next commands you'll genuinely use every day.
Coming from our basic terminal guide? These are the next commands you'll genuinely use every day.
| Command | What it does |
|---|---|
sudo | Runs something with administrator permissions |
apt install | Installs a program |
man command | Shows that command's manual |
history | Shows the last commands you typed |
clear | Clears the terminal screen |
whoami | Shows your current username |
Tip: man command is your best friend when you can't remember the exact options for something — almost every Linux command has its own built-in manual, no need to search online.
A shortcut that saves a lot of time
Press the up arrow to bring back the last command you typed, without having to type it again — press it several times to go further back through your history.
Frequently asked questions
How do I check a command's help without searching online?
Type 'man' followed by the command's name (for example, 'man ls') — almost every Linux command has a built-in manual with its options explained.
How do I repeat a command I already typed before?
Press the up arrow on your keyboard — it cycles through your recent command history, saving you from typing them again.