Home  >  Article  >  System Tutorial  >  Learn how to use chown and chmod commands in Linux systems

Learn how to use chown and chmod commands in Linux systems

WBOY
WBOYforward
2024-01-03 09:24:361408browse

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.

Learn how to use chown and chmod commands in Linux systems

2. Secondly, use the cd command to enter the desktop file. Create another folder jiap.

Learn how to use chown and chmod commands in Linux systems

3. Thirdly, cd jiap enter the jiap folder. Create the jiap.txt file again.

Learn how to use chown and chmod commands in Linux systems

4. Fourth, check the permissions of the jiap file. Then tail /etc/group commandcheck all groups.

Learn how to use chown and chmod commands in Linux systems

5. Fifth, use chown to change the permission group of the jiap folder. Check the permission group of jiap again.

Learn how to use chown and chmod commands in Linux systems

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.

Learn how to use chown and chmod commands in Linux systems

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!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete