Green YGreck Guides FR
🐧 LinuxBeginner⏱ 15 min5 steps

Basic terminal commands

Navigate, copy, search.

  1. Where am I, what does this folder contain:
    pwd
    ls -lah
  2. Move around, create, copy, move:
    cd ~/Documents
    mkdir projets
    cp -r projets projets-copie
    mv projets-copie archive
  3. Search in files and by name:
    grep -rn "mot" .
    find . -name "*.pdf"
  4. Read a file or follow a log:
    less fichier.txt
    tail -f /var/log/syslog
  5. 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.