1. Filesystem structure
  2. Listing files
  3. Directory
  4. Creating files
  5. Reading files
  6. Editing files
  7. Moving files

On Unix systems everything is a file.

Filesystem structure #

A path on a filesystem is noted as a string starting with a /



~ indicates the home directory of the current user (also in $HOME) . the current directory .. the parent directory

Listing files #

ls [directory]: lists files inside a directory, often you use ls without any arguments to show the files in the current directory

Tip: you can combine these flags like this:

ls -lah

Common directories #

ls /

Directory #

cd Change Directory

pwd shows current directory

Creating files #

touch [filename] creates an empty file

Reading files #

cat head tail

Editing files #

You can edit files on the terminal using a terminal text editor like Vi(m) or Nano. Often vi,vim and/or nano are installed by default on many linux distros.

Moving files #