You can change directories using the Change Directory command (cd) . The new directory becomes the working directory. You can use absolute or relative path names to specify the directory to which you want to change. Use a relative path name when you want to change to a subdirectory within your working directory. Use an absolute path name to change to a directory outside your working directory. For information about relative and absolute path names, see "Navigating the file system."
You can use a variation of the cd command to switch from your working directory to its parent directory, or the directory where your working directory is located.
To change directories
1. At the command line, type,
cd <directory>
2. Press ENTER.
Notes
You can change to a subdirectory located several directory levels down in the directory tree structure by including each directory in the path, for example, cd <directory>/<subdirectory>/<subdirectory>.
Do not include the brackets in the command line text. For information about notation conventions for commands, see "Using notation conventions for Linux commands."
To change to the parent directory of your current directory
1. At the command line, type,
cd ..
2. Press ENTER.
Note
You can verify that you changed to the proper directory by typing pwd at the command line. For information about the pwd command, see "Finding your location in the file system."