There are many commands in the Linux system, but for file management, the most commonly used commands are chmod and chown. How to use the chmod and chown commands? Let’s take a look at the detailed graphic tutorial below.
1. First, open the Linux system of the computer. Then enter the student user.
2. Secondly, use the cd command to enter the desktop file. Create another folder jiap.
3. Thirdly, cd jiap enter the jiap folder. Create the jiap.txt file again.
4. Fourth, check the permissions of the jiap file. Then tail /etc/group commandcheck all groups.
5. Fifth, use chown to change the permission group of the jiap folder. Check the permission group of jiap again.
6. Sixth, use chmod to change the read, write and execute permissions of the file. This completes the basic usage of chmod and chmod commands.
The above is the detailed content of Learn how to use chown and chmod commands in Linux systems. For more information, please follow other related articles on the PHP Chinese website!