Example of using the pwd command

To display the pathname to the current directory:

   cd
   pwd
   /usr/graphics/anne

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.


[Home] [Search] [Index]