4.4. Determining Your Current Directory with pwd

As you browse directories, it is easy to get lost or forget the name of your current directory. By default, the Bash prompt in Red Hat Enterprise Linux shows only your current directory, not the entire path. For example, the path to the application gedit is /usr/bin/gedit. The path to user someone's home directory is /home/someone/. Refer to Section 3.2.1 Paths for more information on paths.

Figure 4-2. The Command pwd Displays Your Location

To display the location of your current working directory, enter the command pwd.

The output should look similar to:

/home/user