cd — change directory#
To change into a directory, use
followed by the name of that directory.
For example, to change into
When you log in or open a new terminal window, you
will be placed in your home directory —
user is your username.
You can verify your current directory using the
pwd command discussed earlier:
cd with no arguments#
No matter where you are in the file system, typing
cd without any arguments will take you to your
user@cookbook:/usr/share/dict$ cd user@cookbook:~$
Go to parent directory#
cd .. to go to the parent directory.
For example, when you are in
You will be taken to
A single dot (
.) refers to the current directory.