Viewing the Unix Tree

  • pwd

    • This command name stands for "print working directory".

    • It displays on the terminal the absolute path name of the current (working) directory.

    • It is useful to locate where you are currently in the Unix tree.

# print working directory
pwd
  • ls

    • This command stands for "list".

    • It displays the content of a directory.

    • By default, the content is listed in lexicographic order.

# list the content of the current directory
ls
ls .

# list content of the parent directory
ls ..

# list the contens of your home directory from anywhere
ls ~

Last updated

Massachusetts Institute of Technology