《The Linux Command Line》
Navigation
【tip】man *** 查看某个命令的手册。如 man pwd
1.pwd - Print the name of the current working directory.
pwd -L logical(default), use PWD from environment, event if it contains symlinks.
pwd -P physical, avoid all symlinks.
2.cd - Change the shell working directory.
cd . - refers to the working directory itself.
cd.. - refers to the working directory's parent directory.
cd - - changes the working directory to the previous one.
cd or cd ~ - refers to your home directory.
cd ~ user_name - change the working directory to the home directory of the specified user.
absolute pathnames: begins with the root directory(represented by the leading slash in the pathname) and follows the tree branch by branch until the path to the desired directory or file is completed.
relative pathnames: starts from the working directory.
"./" can be omitted.