Skip to content

Navigation

Each directory is represented by a path:

  • . → current directory
  • .. → parent directory
  • ~ → user’s home directory
  • / → root directory

CommandDescriptionExample
lsList the contents of a directoryls
ls -lList with details (permissions, size, date)ls -l
ls -aInclude hidden files (those starting with .)ls -a
pwdPrint the full path of the current directorypwd
cdChange to a specified directorycd Documents/
cd ..Move to the parent directorycd ..
cd ~Change to the user’s home directorycd ~
cd /Change to the root directorycd /

Fenêtre de terminal
cd ~
pwd
ls -la

  • Use ls -la to see all files, including hidden ones.
  • Verify your location with pwd before running sensitive commands.
  • Use the Tab key for autocompletion.