Root indicates the currently logged on user
LocalHost host name
~ Current location (~ =/root)
# Super User
$ normal User
Command
1.pwd Show Current Location
2.ls querying content in a directory
-a displays all files, including hidden files (the. Start with hidden files)
- L display details-LH ll=ls-l
-D View Directory properties
-H humanized Display file size
-I displays the ID number of the Inode file
-rw-r--.
File type (-File d directory | Soft link (shortcut))
rw-r--R
U owner G Holder O Other
R Read W write X Execute
3. mkdir Create a directory
-P recursion
4.CD switch in the same directory
Cd ~ Back to home directory
cd– Last Directory
Cd.. Parent Directory
5.rmdir Delete Empty Directory
6.RM Deleting directories and files
-R Delete Directory
-RF Enforcement
7. CP Replication
-R Copy Directory
-P Joint File attribute copy
-D Replication Link Properties
-A equals-pdr
8.MV Clipping
In the same directory can be used to rename
MU Lesson Linux Learning Notes (iv) common commands (1)