Please Login or Register

Knowledgebase

Linux/Unix Command: cd - Change Directory

cd - Change Directory

CODE:
$ cd [options] [dir]

The cd command changes the current directory, and is used to move or browse directories/folders on your server via SSH.

For example:

CODE:
$ cd /home/user

Will change the direct to "/home/user".

To go to your home directory:

CODE:
$ cd ~

To go to the last directory you were in:

CODE:
$ cd -

To go up a directory level:

CODE:
$ cd ..

Options:

The -P option is to use the physical directory structure instead of following symbolic links.

The -L option forces symbolic links to be followed.







Was this answer helpful?
Add to Favourites Add to Favourites   Print this Article Print this Article
Also Read

Powered by WHMCompleteSolution

Language:


Web Hosting
Client Login
Web Hosting

Email

Password

Remember Me


Web Hosting
Search
Web Hosting




Follow Us on Twitter