[Introduction to UNIX for Web Developers]
[Spacer] [Table of Contents]
[Next Page]
[Previous Page]
The "pwd" Command
Relative paths are pretty useful, but how do you know where you are in order to determine the relative location of something you want to access?

Well, UNIX provides the "pwd" utility just for this purpose. The "pwd" utility lets you know in which directory you currently are in such as in the following example in which we have used the pwd utility. You can see that the result was "/home/selena" which means that we are located in the selena directory which is a subdirectory of home which is located in the root directory itself.


Below is a table that goes over the pwd utility in detail.

Syntax Options Example Description
pwd None pwd Returns the present working directory

Okay, now that you know how to login from yesterday, why not do so and then use the pwd utility to find out where you are placed. Most likely, you will be placed in your home directory perhaps "/usr/home/yourlogin".

Previous | Next | Table of Contents