Record the command parameter chgrp in Linux: Change the group to which the file belongs;
Chown: Change the file owner; www.2cto.com
Chown can only change the group to which the file belongs: for example, chown. bin filename -- change the group to which the file belongs to the bin group. Chmod: change file permissions numeric type change permissions: there are nine basic permissions for Linux Files, the three identities are owner, group, and others. Each of them has its own read, write, and execute permissions, of which: r: 4; w: 2; x: 1; the three permissions (r/w/x) of each identity (owner/group/others) must be accumulated. For example, when the user's permissions are readable and writable, that is to say, r + w + x = 4 + 2 + 0 = 6. In fact, we can understand that the rwx permission corresponds to one bit of the binary number, and this bit is 1 when there is a corresponding permission, otherwise, the value is 0, so that the obtained binary number in decimal format is his permission. In the preceding example, if the readable and writable data cannot be executed, the binary corresponding bit of rwx is 110, and the conversion to decimal is 6. This is much easier! Www.2cto.com: in the preceding table, u, g, and o indicate the permissions of three identities: user, group, and other! In addition, a represents all, that is, all identities! Then the read and write permissions can be written as r, w, x! For example: chmod g + rw filename reference article: laruence Linux private dish ~