Linux Basic 28

Source: Internet
Author: User

1. User cron    crontab        -l  to view their corn task list          -e  Open the user's own cron profile with the editor defined in the Edior variable and edit the individual tasks           are all using the-e option, including delete, new, modify         - r  Mobile crontab file             crontab (Administrator rights)          -u UserName  Configure crontab Jobs for other users, eg:crontab -e -u  docker         If you use% in crontab user commands, you have to use escape \%         eg: 5 3 * * * /bin/touch ~/testfile_ ' Date  + \%y-\%d '. txt            5 3  * * * /bin/touch ~/testfile_ ' date +  '%y -%d ' .txt                  tasks that implement the second level         * *  * * * for i in {0..4}; do /bin/echo  "How are you"  ; sleep; done          executes 4 times per second                  while true ; do  /bin/ehco  "How are you"  sleep 21 ; done             anacron  check that tasks that have not been performed in the past period in the crontab are executed at some point after the boot, regardless of whether their cycle is reached or not, and the minimum is days.     2.facl  Append the original permission model to another layer of permission control mechanism, save to file extension properties     getfacl file ...     setfacl {-x|-m}  Permissions  FILE         -m  Set Permissions             -m u: username  : perms            -m g: groupname :  Perms            -m m: : perms   Modify Mask Permissions         -x  Cancel permissions              -x u: UserName             -x g: GroupName             -x m:  Remove Mask Permission                      -R  recursion                  3.bash Editor's circular control     continue  End this cycle early to start another cycle     break[n]  jump out of the current loop

Linux Basic 28

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.