Under the Unix operating system, the chmod command can be used to modify the access rights of the file. The format of the chmod command is as follows:
Format 1: chmod symbolic_mode file… Br>
Format 2: chmod absolute_mode file…
Format 1: symbolic mode (symbolic_mode), symbolic mode command format is as follows:
chmod [who] op permision file…
The who item represents the user type, and its content is one or more of the following:
u file owner (user --- owner)
g user group (group)
o Others (other)
a Everyone (all)
op items represent actions:
+ means to add the rights specified by permission
- Indicates that the permission specified by the permission is canceled.
The permission item is an access permission, and its content is one or more of the following:
r means readable
w means writable
x means executable
Example:
chmod u+w test report Owner-to-test and report files <; writable & rdquo ;
chmod ux abc.c Unable to execute abc.c file
chmod u+rwx myfile1 Owner pair myfile1“readable, writable, executable”
chmod ugo+rwx myfile2 Anyone is readable, writable, executable & rdquo;
Format 2: Absolute mode (absolute_mode), the command format for symbolic mode is as follows:
chmod xyz file…
x, y, and z are numbers from 0 to 7, respectively, indicating the access rights of the owner, user group, and others to the file. The formulas for x, y, and z are:
a*4 + b*2 + c
Tip: Where,
a=1 respectively means readable , a=0 means unreadable;
b=1 means writable, b=0 means not writable;
c=1 means executable, c=0 means unexecutable;
Example:
chmod 751 ncp Owners have all rights to ncp readable, writable, executable & rdquo; members of the group are only readable and readable. The right to execute & rdquo; other users have the right to "execute" for ncp.
OpvnVPN Chinese full name: virtual private network. It is a private private network technology that
The process is simply a process of executing a program, it is a dynamic concept. No matter what sys
Computer Store News: first Linux systems for flat panel launch For those who have tired of the N
For Linux systems, whether it is a central processor, memory, disk drive, keyboard
Apache prefork and worker working mode introduction
Linux kernel space and user space information interaction method
Windows XP system troubleshooting method
Display all process commands in linux
The example explains the difference between continue break
What does the Unix/linux kernel play in the system?
Simple file synchronization between Linux
Centos install apache detailed tutorial
The difference between Linux and Windows
Fedora Features - Smolt solves hardware compatibility problems
After reinstalling the win7 system, how to delete the Windows.old folder to release the C disk space
How does Windos defender close
Windows 10 build 10136 mobile version starts testing next week
Windows7 play games can not full screen problem solution
Win10 system to view the state of the disk
How to change the disk volume label in win10/win8.1/win7 system
Win7 new folder shortcut key creation method and steps