5.3 Navigating the File System
5.3.2 Displaying the current directory
Remembering which directory you are currently working in is often difficult. Use the pwd (print working directory) command to display the absolute pathname of your current directory. The pwd command is used frequently to check the current location in the directory tree or hierarchy. You can move from one directory to another with the cd (change directory) command.

To determine the directory you are currently in which is known as your current directory, simply type pwd at the shell prompt and press enter to execute the command. Note that the pwd command does not have any options or arguments. It simply tells you what directory you are in using the absolute path name so there is no doubt. Assuming you are currently in the /home/user2 directory, you will get the following response from the pwd command.

$ pwd
 /home/user2

Interactive Media Activity (Flash, 15 kB)
  Using the pwd Command

Work through the media activity shown in the Figure to demonstrate your understanding of the pwd command. Refer to the Class File Tree Structure by clicking the 'tree' button located on the Menu Bar and type what you think the result of the pwd command would be depending on the directory you are currently in. Be sure to use forward slashes and note that all directory, subdirectory and file names are case-sensitive.