Linux Command (1): cd command, linux Command cd
1. Role: Change the working directory;
2. Format: Cd [path]
The path is the working directory to be changed. It can be a relative path or an absolute path.
3. Use instances: [Root @ www uclinux] # cd/home/yourname/
4. Instructions for use:
This command changes the current directory to the directory of the specified path. If no path is specified, return to the user's home directory. To change to a specified directory, you must have the execution and read permissions on the specified directory.
This command can use wildcards. You can use "cd-" to return to the previous working directory. "./" Indicates the current directory, and "../" indicates the parent directory.
What are the cd and cd/commands in linux?
Cd... is back to the upper-level directory
Cd/is returned to the root directory
Cd. Is the current directory...
In linux, how does the cd command switch the directory?
1. [root @ localhost] # Add "/" to the folder under the root directory when switching cd/usr "/"
2. [root @ localhost] # bin of the folder under cd bin usr
3. [root @ localhost] # combine steps cd/usr/bin 1 and 2 into three.
4. [root @ localhost] # cd/switch to the root directory
5. [root @ localhost] # Switch cd to the current user's directory
[Root @ localhost] # pwd: view the complete path of the current folder