Sunday, January 5, 2014

Change Directory Command in Linux

How to Change Directory in Linux

Linux is one of the most popular operating system which is powering a majority of internet servers. As the internet grows , system administrators who have a good grasp of the Linux operating system are always in high demand in the industry. In this tutorial you can learn how to change the directory in Linux environment .

Command: CD

Command Usage:
  • Which is used to change the current directory. This is equivalent to the CD and CHDIR commands in MS-DOS.
  • To change directories in a Linux environment, use the cd command.
  • The abbreviation of CD is Change Directory 
The cd command allows you to change directories. When you open a terminal, you will be in your home directory. To move around the filesystem, use cd.

Below are some basic examples of how this command can be used to change directories in Linux OS.
  •  To navigate to your desktop directory, use cd ~/Desktop
  •  To navigate into the root directory, use cd /
  •  To navigate to your home directory, use cd
  •  To navigate up one directory level, use cd ..
  •  To navigate to the previous directory (or back), use cd -

When you need to move into multiple directories with single command, you can use a command to the below example for your directory.
cd Documents/Picture

When you need to move back a directory, you can use the below command example in your terminal.
cd...

CD Command in Linux

Change Directory Command in Linux

No comments:

Post a Comment

Related Post

Linux Tips and tricks,Online Linux Helpers