Home » linux » Linux and Unix cd command tutorial with examples

Linux and Unix cd command tutorial with examples

Command cd stands for Change Directory.
You can change directory or move from one directory to another directory by using cd command.


pwd command display the absolute path name of current directory. To see the current directory absolute path press pwd command on terminal.

We are currently in “ it ’ directory which resides in home directory.

Suppose we want to move to directory “abc” . Note directory “abc” must be in the current directory. The command to move in the current directory shown below

Now we are inside the directory “abc”. To confirm press command “pwd”.

Back To Home Directory: Suppose now we are inside sub-sub directory and willing to go back to the home directory the simply press command cd.

Change Directory With Absolute Path Name: Suppose we want to move in the random directory which is not present in the current directory then absolute pathname must be specified with “cd” command.

Managed by MochaHost - Fast & Easy WordPress Hosting