I. Directory-related commands
1.mkdir
-P Recursive creation
-V Visual creation
2.rmdir (usually do not use this command, because it is easy to accidentally delete the file, so instead of Rm-r, the following will speak)
3.rm
-R operation of the directory
-F Force Enforcement
-I asks whether to delete (default input rm-i)
If you want to use a real RM, then/BIN/RM, or cancel its alias Unalias RM
4.cp
-R operation of the directory
-I is also default to Cp-i
If you want to use the real CP, ibid.
5.MV (nudge, rename)
-V Visual operation
-I. Ibid.
Note that the MV command does not have the-R
Ii. text-related commands and file attributes
1.cat/tac
View and reverse view in a positive order
2.more/less
Common shortcut keys related to text:
Page Flip: J down-cut k up look, Big Brother G to the front, little brother G to the last
Search:/what down find, what to look up
3.head/tail
4. File attributes
"File type" "belong to Main" "belong to Group" "Other person"
-Normal file
C Character file
B-Block file
s socket file
L Soft Link File
P Pipeline File
5. Modify Properties command
Chown username:groupname FileName [-r]
chmod----->a=all,u=user,g=group,o=other
Chattr +i cannot be modified, deleted, renamed
+a can only be appended, cannot be modified, deleted, renamed
Lsattr
The S property of the file, the T attribute (note distinction)
"CentOS" catalog file related