Skip to content

Navigation

Moving around the file system: where am I, what is in here, and where is the file I'm looking for?

Basics: The most important directories on a Linux server

Where am I, and where can I go?

  • pwd


    Show the directory you are currently in.

  • cd


    Change the current directory.

  • pushd


    Change directory and remember the previous one on a stack.

  • popd


    Jump back to the previous directory on the stack.

What is in here?

  • ls


    List directory contents with permissions, owner, size and date.

  • tree


    Show a directory and its subdirectories as a tree.

Where is it?

  • find


    Search files by name, type, size, age or owner.

  • locate


    Find files by name in a moment using a database.

  • which


    Show which program runs when you type a command.

  • whereis


    Find program, configuration and man pages of a command.

  • realpath


    Show the full path with all links resolved.