cd

From Juneday education
Jump to: navigation, search


Description

Command (not a program), built in to the shell, that changes the current directory.

Read more: Wikipedia on cd .

Example usage

Assuming you have a directory called tmp in your present working directory you can enter that directory (tmp) like this

$ cd tmp

If you want to enter the directory /usr/bin you enter:

$ cd /usr/bin

If you want to go to your HOME directory you can do any of the following:

$ cd

or

$ cd ${HOME}

or

$ cd ~