1. Permission management command chmod
The permission to change files can only be changed by the owner and root
Case study:
Note: a file can be deleted only if you have W permission on the directory in which the file resides, not if you have W permission on the file. R-x occurs simultaneously for directories.
2. Other permission management commands
Change the owner of the file
Change the owning group of a file
Displays default permissions for files
File search command find
Note: try not to search in the root directory, the more precise the better, try not to search files during peak server timesCopy the code
Other file search commands
Similar to everything quick find
Note: The search is fairly fast because instead of finding every directory, every partition, and every hard drive, find looks in a database. The newly created file may not be found because the database cannot be updated in real time. Therefore, we can use updatedb command to upgrade the file database and find the corresponding newly created file. If the file is created under TMP, it is easy to miss it because temporary files are not included in the database. Strictly case sensitive, if you want to be case insensitive you can add -i to search.Copy the code
Command path and alias can be found
Grep -v ^# /etc/inittabCopy the code