Summary of linux-ubuntu commonly used commands during operation

1.
Task: Linux assigns users the authority to operate a certain folder.
Solution:
In the case of root user login, give user gaozhen123 permission to operate the /usr/share/applications directory (folder).
The sample code is as follows:

chown -R gaozhen123:gaozhen123 /usr/share/applications
 #给目录/usr/share/applications设置权限
chmod 760 /opt

Guess you like

Origin blog.csdn.net/gz153016/article/details/108936265