Linux – cd command in Linux




Linux cd command.

cd – Change the shell working directory.

cd command syntax

cd [-L|-P]  [dir]

cd command options

cd command main options:

option description
cd Change the current directory. With no arguments “cd” changes to the users home directory. (cd <directory path>)
cd pathname cd will change you to the specified directory

 

Now let us practice some cd commands.

 

Command:

“~” is the location of your home directory

Command: cd ..

“..” is the location of the directory below current one

Command: cd path-name

cd will change you to the specified directory

Command: cd .

In Linux, (.) means the current directory, so typing

 


Partner Sites

VideoToGifs.com

EasyOnlineConverter.com

SqliteTutorials.com