Linux Delete files in-depth understanding and task timing--linux alarms

Source: Internet
Author: User
Tags aliyun

1. Linux Delete a file's permissions to see the directory where the files are located
Delete files need to have W permission on this directory

Modifying a file to view the contents of a file requires RW permission on the file

Delete Create a file needs to have WX permission on the file to be seated in the directory
2. chattr Add hidden file lsattr view hidden permissions append append permission can only append
I indestructible cannot be modified unable to delete some files that need to be protected for the system can be added Eg:/etc/inittab/etc/passwd/etc/shadow

3. Suid running a command is equivalent to root and special permissions chmod u+s/bin/rm Super dangerous.

chmod o+t/tmp Sticky bit--anyone can create, but only manage their own




Linux timed Tasks!! Alarm clock!!
ATD Run Once
No
Anacron Server for non-7x24 hours

Crond the user's scheduled tasks, and the system's scheduled tasks

System timing tasks do not require drill down
  

We call the user a timed task.

View Task Crontab-l Cat/var spool/cron/root
Edit Task Crontab-e Vim/var spool/cron/root
1,!! Whether the software that the timer task depends on can be used
/etc/init.d/crond status
2. See if Crond is powered on
Chkconfig | grep Crond
3 to see if sshd is running
Ps-ef |grep sshd

Process: A program that is running
Daemon: A program that runs continuously




Crontab How to use: Have grammar check function
View Task Crontab-l Cat/var spool/cron/root
Edit Task Crontab-e Vim/var spool/cron/root
Directory for timed file placement:/var/spool/cron/
Log files for timed tasks:/var/log/cron
What is forbidden with the use of timed tasks/etc/cron/

Timing task is what time to do what task!

* EVERY * * * * * command
/n */10 means every 10 minutes
Ntpdate ntp1.aliyun.com
CRONTAB-E * * * * * */usr/sbin/ntpdate ntp1.aliyun.com >/dev/null 2>$1
-07-11 * * * cmd runs once a day from 7 o'clock in the morning to 11.
Every Monday Friday three o'clock in the morning to five point of the hour and the slightest run
Timeshare Zhou
00,3003-05**01-05

Linux Delete files in-depth understanding and task timing--linux alarms

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.