Thursday, December 20, 2012

Linux Terminal Command CD

Here is some information on getting around in the Linux terminal. This is the cd command, when using the Linux shell or terminal program, this command will change the directory for you. I also included a video I found on Youtube that explains this a little better.

cd command = Change directory.

cd / - drops you directly into root directory

cd ~ - will drop you back into your home directory

cd .. - will take you back one directory

cd /directory/path - typing the directory path puts you into that place in the directory

example cd /usr/bin would place you in the /usr/bin/ directory of root cd /home/username/ places you back in the home directory of the specified username.

pwd - Print Working Directory will show you what directory your in.

ls - will list the contents of the directory your in.

Here's a video I found on Youtube that explains the cd command a little more in depth.

No comments:

Post a Comment