pwd and cd

When we covered absolute and relative path names, we used the cd command to change directory. You can be at any point in the file system hierarchy and use cd to change to the desired directory, provided that you have the necessary permissions to change to that directory.

We can change a directory using an absolute path name, as shown in the following example:

$ cd /home/denise/.netscape-cache
					

Regardless of your current location in the file system hierarchy, this changes you to the directory /home/denise/.netscape-cache. If, however, your current location in the file system hierarchy is /home/denise, then you could use a relative pathname to change to .netscape-cache, as shown in the following example:

$ cd .netscape-cache
					

In order ...

Get HP-UX 11i System Administration Handbook and Toolkit, Second Edition 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.