How do I determine where I am in the filesystem in Linux?

Last updated: March 28, 2011

Sometimes when working deep in the filesystem in a command line interface and after bouncing around a bit you can lose track of where you are.

To find out where you are in the filesystem you want to know what is called your current working directory and you do this by using the pwd command which stands for Print Working Directory.

# pwd

This will show you your full path from root.

Tags: linux, bash, cli, navigation