Example 4 Delete a file on a specific Time
at 11:45pm
at> rm hello.txt
In this example the hello.txt file will be removed at 11:45PM today
How to Schedule Tasks Using at Command in Linux
The at command in Linux is used to schedule one-time tasks to be executed at a specified time in the future. It allows users to submit a command or script for execution at a later time, offering a convenient way to automate tasks without the need for complex cron jobs. The scheduled jobs are managed by the atd (at daemon) service, which runs in the background and executes the queued tasks at the specified times. In this article, we will explore the at command and the atd service used by the at command in Linux.