Working with Cron Jobs Flashcards
A Linux host maintains a list of Cron jobs in a file located at?
/etc/crontab
What information does the crontab
file contain?
the time interval after which the command has to run, the username that runs the command, and the command itself
What is the cron’s minimum scheduling time?
one minute
What needs to be done if there is a requirement to run a cron job more often than every 1 minute?
a combination of the cron service and a shell script
How to open the crontab configuration?
crontab -e
What are the 2 different types of cron jobs?
user-specific cron jobs and system-wide cron jobs
Why would and attacker choose to run a system cron job and not a user cron job?
system cron jobs typically run with elevated privileges (often as the root user)
What is the path and the name of the primary system-wide cron configuration file?
/etc/crontab
How to list content of the directory that olds scripts that are run daily?
ls -l /etc/cron.daily
How to list content of the directory that olds scripts that are run daily?
ls -l /etc/cron.hourly
How to list content of the directory that olds scripts that are run daily?
ls -l /etc/cron.weekly/
How to list content of the directory that olds scripts that are run daily?
ls -l /etc/cron.monthly/
How to view the crontab of the current user?
crontab -l