The CD command is one of the most commonly used commands in Linux, and I think the other should be LS (follow-up introduction). The main function is to jump to the CD command to specify the directory.
CD command format: CD [-l|-p] [dir]
Common CD Commands:
1. Jump to the specified directory: cd dir
Dir can be either an absolute path or a relative path.
Dir/That is, jump to the root directory. Www.2cto.com
Dir is also a wildcard, such as CD * CD a*b CD a*/p* and so on.
2. Skip to Home directory: CD or CD ~
3. Skip to the previous level: CD.
4. Jump to the last directory: CD-
such as: Cd/home/test/test1 at this time under the/home/test/test1
The CD is now under root
CD-Now back under the/home/test/test1
5. Jump to the location indicated in the previous command: CD!$
Use the parameters of the previous command as the CD directory
Linux Learning Note (4): cd command