[Han Shunping Linux] Study Notes 4

1. Introduction to the Linux group

insert image description here

In Linux, every user belongs to a group. For example, tom belongs to group 1, jack belongs to group 2, the text file a.txt is created by tom, and tom is the owner of a.txt (can be changed); group 1 is the group where the text file a.txt is located , other groups 2, Group 3 is other groups (other groups also have certain permissions to a.txt).
insert image description here

1.1 File/directory owner

insert image description here
View file owner
insert image description here

1.2 Creation of groups

insert image description here
Example:
id fox query fox information
insert image description here
insert image description here
insert image description here

1.3 Other groups

insert image description here

1.4 Basic introduction to permissions

- is a normal file

insert image description here

insert image description here

1.5 Permission Description Case

insert image description here

1.6 Modify permissions - chmod

insert image description here

insert image description here

1.7 Modify file/directory owner -chown/-chgrp

insert image description here

The " -R " here is to change the owner of the following files to tom

insert image description here

Two, crond task scheduling

insert image description here
insert image description here

insert image description here
insert image description here

insert image description here

Three, at timed task

insert image description here
insert image description here
insert image description here

After entering the command, ctrl+D is required to display the job * twice, and then the task is created

insert image description here

Guess you like

Origin blog.csdn.net/weixin_45768644/article/details/128588702