Edit a crontab file
●Command: crontab -e
Check date and time of the system
●Command: date
Add a cron job that runs at the modified minute
●Command: <minute> * * * * echo 'Hello World' > /path/to/output.txt
Wait for a specified amount of time, then check the contents of the output file
●Command: cat /path/to/output.txt
To list all the cron jobs
●Commands: crontab -l
at
●Schedule one-time tasks.
●Executes commands at specified time.
●Options
○-f: Execute commands from file.
○-l: List pending jobs.
○-r: Remove pending jobs.
Install the ‘at’ package and then start the services
●Command: dnf install at -y && systemctl start atd
Schedule a task to run after specified minute
●Command: at now + <number> minutes
After entering the ‘at’ prompt, schedule a task that will execute after the
specified time interval
●Command: echo 'Your custom message' > /path/to/output.txt
Note: Save the task by pressing ctrl+D and wait for 2 minutes and then check
the file using cat command.