Example of using the pwd command

To display the pathname to the current directory:

   cd
   pwd
   /home/graphics/anne

The user changes to their home directory and then uses the pwd command. This displays the pathname to their home directory /home/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 home which is directly below the root directory.


[Home] [Search] [Index] This site maintained by umk@astroa.physics.metu.edu.tr