Basic commands to explore files, inspect text, and move around Linux quickly.
| Command | What it does | Example |
|---|---|---|
pwd | Show your current folder path. | pwd |
ls | List files and folders. | ls -la |
cd | Change to another folder. | cd /home |
mkdir | Create a new folder. | mkdir projects |
touch | Create an empty file. | touch notes.txt |
cp | Copy a file or folder. | cp notes.txt backup.txt |
mv | Move or rename a file. | mv backup.txt notes-old.txt |
rm | Delete files (careful!). | rm notes-old.txt |
cat | Print file content. | cat notes.txt |
less | Read long files one page at a time. | less /etc/passwd |
grep | Search text inside files. | grep "root" /etc/passwd |
man | Open command manual pages. | man ls |
clear | Clear terminal screen. | clear |
Tip: Press Tab to auto-complete file and command names.
Tip: Press Ctrl + C to stop a running command.