Getting the Directory Location with the pwd Command

You might be wondering how to find out exactly where you are after doing many cd commands. Unix has a spiffy little command just for this: pwd (present working directory).

To learn the current directory

Type pwd and press .

The complete path to the current directory appears, followed by the shell prompt (Figure 17).

Figure 17. The pwd command displays the complete path to the current directory.

Get Mac OS X 10.4 Tiger: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.