Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Linux Note 7 flow control statements, user identity and file permissions.

2025-01-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Scheduling task service program

1. Schedule tasks at one time

One-time scheduled tasks are performed only once and are generally used to meet temporary work requirements. You can do this with the at command, as long as you write it in the form of "at time". If you want to see an one-time scheduled task that has been set up but not yet executed, you can use the "at-l" command; to delete it, you can use the "atrm task serial number".

2. Periodic scheduled tasks

The command to create and edit a scheduled task is "crontab-e", the command to view the current scheduled task is "crontab-l", and the command to delete a scheduled task is "crontab-r".

If you are logged in as an administrator, you can also add the-u parameter to the crontab command to edit someone else's scheduled task. Orders for minutes, hours, days, months and weeks "

User identity and file permissions.

Useradd command

The useradd command is used to create a new user in the format "useradd [option] username". Groupadd command

The groupadd command is used to create user groups in the format "groupadd [options] group name". Usermod command

The usermod command is used to modify the attributes of the user in the format "usermod [option] username". Passwd command

The passwd command is used to change the user's password, expiration time, authentication information, etc., in the format "passwd [options] [user name]".

5.userdel command

The userdel command is used to delete the user in the format "userdel [option] username".

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report