Moving Around with the cd Command
Up to now, you haven’t moved around in the directory tree. You’ve been fixed in place in your home directory. Changing directories is easy—just use the cd (change directory) command, followed by the destination you want to move to.
You have two ways to indicate a destination: with an absolute path or a relative path.
An absolute path specifies the location of a file or subdirectory, starting at the root directory and working downward.
A relative path specifies the location of a file or subdirectory starting at your present location.
Let’s look at an example. Suppose I’m currently in my home directory (/Users/ronh) and I want to move to the /usr/bin directory. I could specify the destination with its absolute ...
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.