Linux Directory Commands
To change directories from your current working directory in linux, use the command cd.
cd /etc/
The above command changes directories to the /etc/ directory. The second word on the command line must be a path. It can either be relative or absolute, and can move one directory or many.In linux if cd is entered with just no options it moves to the home directory of the user.
Options with cd
cd — Returns you to your login directory
cd - — Returns you to your previous working directory
cd ~ — Also returns you to your login directory
cd / — Takes you to the entire system's root directory
cd /root — Takes you to the home directory of the root user.Only a root user can access this /root directory
cd /home — Takes you to the home directory, where user login directories are usually stored
cd .. — Takes you to the home directory of present working directory.