cd <path>Changes the current directory to an absolute or relative path.
Example
cd /var/logThe shell built-in that changes the current directory, including shortcuts for home, previous and parent directories.
cd -P <path>Resolves symbolic links and enters the physical directory.
Example
cd -P /var/www/currentpushd <path>Changes directory and pushes the old one onto a stack.
Example
pushd /etc/nginxpopdReturns to the directory on top of the stack.
dirs -vShows the directory stack with index numbers.