[Email protected] ~]#
which
Root: currently logged in user
HGS: Host Name
~: Current directory (home directory), for the root user, home directory:/root , for ordinary users, home directory:/home/{username}
#: Super user prompt, normal user prompt:$
- directory where you switch: CD
English original meaning:change Directory
-
- Simplified operation:
- CD ~ Enter the current user home directory
- CD-Go to last directory
- Cd.. Go to the top level directory
- Query user's current directory: PWD
English original: p ring Span style= "color: #ff0000;" >w orking D irectory
- query contents in directory: LS
- ls [options] [file or directory]
- options:
- -a displays all files, including hidden files ("."). Beginning of file)
- -l display details
- -d View Directory Properties
- strong>-h humanized display file size
- -I display inode
For example, execution: Ls-lh gets the following result:
-
- -rw-r--r--(R read W write x executable)
- -File type (-file d directory l soft link file)
- Rw-u owner
- r--G-affiliated groups
- r--O Other People
- Build directory: mkdir
Linux Learning Notes < command introduction >