← Back to Home

Linux Basics

Learn Linux fundamentals with a clean cheat sheet and a safe interactive practice terminal.

Command Cheat Sheet

Focused on beginner essentials, with a few intermediate and advanced references.

LevelCommandWhat it doesExample
BeginnerpwdPrint current working directorypwd
lsList files and foldersls
cd <dir>Change directorycd projects
cd ..Go up one directorycd ..
mkdir <name>Create a new foldermkdir lab-notes
touch <file>Create an empty filetouch todo.txt
cat <file>View file contentscat notes
echo <text>Print text outputecho Hello Linux
clearClear terminal outputclear
helpShow supported practice commandshelp
IntermediatetreeShow directory structuretree
whoamiShow active usernamewhoami
unameShow kernel/system infouname
ls /etcList another pathls /etc
cd /home/studentUse absolute pathscd /home/student
Advancedcat /etc/hostsRead a system filecat /etc/hosts
mkdir practice && cd practiceCommand chaining idea(concept only in real shell)
man <command>Read manual pages (real Linux)man ls
Interactive Practice Terminal
Linux Basics (practice mode)
Type 'help' to see commands.
student@linux-basics:/home/student$
Beginner quick-start: pwd · ls · cd <dir> · cd .. · mkdir <name>

Official Linux Distribution Links