Content Summary:
1. Several commands related to the directory
mkdir Follow-p option
RmDir also has a-p option
Rm-r-F Two common options
Cp-r for catalogs, sometimes we use/BIN/CP
MV Rename or move, sometimes we use/BIN/MV, when we are in the MV directory, note that if the target directory exists, then the source directory will be moved to the target directory
2. Text-related commands
Cat
Tac
More
Less shortcut keys: J, K, G, G, ctrl+b, ctrl+f, Space
Head-n
Tail-n-F
3. Properties of a file or directory
Belong to the master, belong to the group
Type D,-, C, B, L, s
Permission rwx
Inode index Node
4. Change Permissions
Chown change the owner of the owning group
chmod changing rwx permissions
Umsk Specify default permissions, directory 755 file 644, directory without execute permission, we cannot CD to this directory, but can ls this directory
Chattr-a-I +a +i special permissions
Lsattr-a-R
Set_uid Set_gid Sticky_bit Special Privileges
5. Search for documents
which
Whereis
Locate UpdateDB Yum install-y mlocate
Find-type-name-mtime-atime-ctime
Stat command to view three time
6. link files under Linux
ln
Soft Connection Hard Connection
Lesson-4 Linux Directory file management