The cd command

The cd command



What does it do ?

The cd command allows you to change from one directory to another. It can be used to move anywhere within a system.


How is it used ?

The cd command is basically used to move around from one dir to another dir. The command is typed along with an argument, such as cd kermit. This would move you to the directory called kermit, on the hard drive or in the system.


Examples and remarks

If you type in the command cd .., you can change back to the dir you were previously in. You can also change back to your home dir just by typing cd.

example: cd csc342(moves to another dir)

example: cd /home/mwhite/csc(moves you to a dir within a dir)



next previous table of contents