Use cd to change directories Print

  • 28

Type cd followed by the name of a directory to access that directory.
Keep in mind that you are always in a directory and allowed access to any directories hierarchically above or below. You may also benefit from reviewing my directory commands page.Ex:
cd games
If the directory games is not located hierarchically below the current directory, then the complete path must be written out. Ex:
cd /usr/games
To move up one directory, use the shortcut command. Ex:
cd ..

 

To see whats in the current directory u can use the "ls" command


Was this answer helpful?

« Back