First use the pwd command to check the current directory
(Video tutorial recommendation: linux video tutorial)
The command used to switch file directories is cd.
As shown in the picture: cd / is to switch to the root directory.
#You can switch directories through absolute paths or relative paths.
Use the ls command in the root directory to check what files are in the directory.
Then use the absolute path to enter the usr directory, and the command is cd /usr.
If you want to go back to the previous directory, you can use the command cd ../ .
Recommended tutorial: linux tutorial
The above is the detailed content of What is the command to enter a folder in linux system. For more information, please follow other related articles on the PHP Chinese website!