Basic terminal commands
Navigate, copy, search.
- Where am I, what does this folder contain:
pwd ls -lah
- Move around, create, copy, move:
cd ~/Documents mkdir projets cp -r projets projets-copie mv projets-copie archive
- Search in files and by name:
grep -rn "mot" . find . -name "*.pdf"
- Read a file or follow a log:
less fichier.txt tail -f /var/log/syslog
- Get help:
man ls ls --help
⚠️ rm -r deletes with no trash. Never run rm -rf with an empty variable or a path you do not understand.