The PWD command is used to display the current working directory in the format: pwd[options]
@1, view the current work path:
[Email protected]/]# pwd
The CD command is used to switch the work path format to: "CD directory Name"
cd command parameters
Parameters |
Role |
- |
Switch to the previous directory. For example: "cd-" |
~ |
Switch to "home directory". For example: "cd~". |
~username |
Switch to another user's home directory for example: "CD ~root" |
.. |
Switch to the parent directory. For example: "CD.". |
The LS command is used to view those files in the directory in the format: "ls[options [File]"
Ls-la
LS parameter
Parameters |
Role |
-A |
View all files (including hidden files) |
-D |
Just look at the directory itself |
-H |
Easy-to-read file size |
-L |
Show file Details |
|
@1, see those files in the/etc directory
[Email protected]/]# ls/etc
@1, view/etc directory permissions
ls -ld /etc
Append-H display capacity in k/m/g units
ls -ldh/etc
LINUX-11 Basic command-The working period directory Toggle Command-PWD,CD,