Linux Command - cd
cd - Change the shell working directory.
Change the current directory to DIR. The default DIR is the value of the HOME shell variable.
cd is not an actual command. It’s built into the shell. So man cd returns nothing. Use help cd instead.
Examples
go to current user’s home directory
1 | cd |
or
1 | cd ~ |
go to /bin directory
1 | cd /bin |
go to parent directory
1 | cd .. |
go to previous selected directory
1 | cd - |