Example of using the pwd command

1. To display the pathname to the current directory:


The user changes to their home directory and then uses the pwd command. This displays the pathname to their home directory /usr/graphics/anne.

The path to a user's home directory varies from system to system. Here, the home directory of the user anne is located in the directory graphics, which is a subdirectory of the directory usr which is directly below the root directory.

Top document