• Home
  • Cloud VPS
    • Hong Kong VPS
    • US VPS
  • Dedicated Servers
    • Hong Kong Servers
    • US Servers
    • Singapore Servers
    • Japan Servers
  • Company
    • Contact Us
    • Blog
logo logo
  • Home
  • Cloud VPS
    • Hong Kong VPS
    • US VPS
  • Dedicated Servers
    • Hong Kong Servers
    • US Servers
    • Singapore Servers
    • Japan Servers
  • Company
    • Contact Us
    • Blog
ENEN
  • 简体简体
  • 繁體繁體
Client Area

Linux Command: at – Queue, examine or delete jobs for later execution

December 16, 2023

Linux Command: at – Queue, Examine or Delete Jobs for Later Execution

When managing a Virtual Private Server (VPS) like Server.HK, it’s crucial to understand the various Linux commands at your disposal. One such command is ‘at’, which allows you to schedule tasks to run at a later time. This article will delve into the ‘at’ command, explaining how to queue, examine, and delete jobs for later execution.

Understanding the ‘at’ Command

The ‘at’ command in Linux is a powerful tool that allows you to schedule tasks to run at a specific time in the future. It’s particularly useful for system administrators who need to perform routine tasks such as system updates, backups, or other maintenance tasks on their VPS.

How to Use the ‘at’ Command

Using the ‘at’ command is straightforward. Here’s a basic example:

$ at 10:00 PM
at> echo "This is a test."
at> 

In this example, the ‘at’ command will execute the ‘echo’ command at 10:00 PM. The ” symbol indicates the end of the command.

Queueing Jobs with ‘at’

Queueing jobs with ‘at’ is simple. You just need to specify the time you want the job to run, followed by the command you want to execute. Here’s an example:

$ at 2:00 AM tomorrow
at> /path/to/script.sh
at> 

In this example, the ‘at’ command will run the ‘script.sh’ script at 2:00 AM tomorrow.

Examining Jobs with ‘at’

You can examine your scheduled jobs with the ‘atq’ or ‘at -l’ command. This will display a list of your queued jobs, along with their scheduled execution times.

Deleting Jobs with ‘at’

If you need to delete a scheduled job, you can do so with the ‘atrm’ or ‘at -d’ command, followed by the job number. Here’s an example:

$ atrm 5

This command will delete the job with the number 5.

Conclusion

Understanding how to use the ‘at’ command can greatly simplify your task management on a VPS. By learning how to queue, examine, and delete jobs, you can automate many routine tasks and focus on more important aspects of managing your server. Remember, the ‘at’ command is just one of many powerful tools available to you when using a Server.HK hosting.

Recent Posts

  • How to Check Logs on a Debian Server
  • Debian Server Installation and Basic Configuration Guide
  • What Is Debian and How It Works
  • Common Ubuntu Server Failure Scenarios and How to Diagnose Them
  • Automating Ubuntu Server Provisioning

Recent Comments

No comments to show.

Knowledge Base

Access detailed guides, tutorials, and resources.

Live Chat

Get instant help 24/7 from our support team.

Send Ticket

Our team typically responds within 10 minutes.

logo
Alipay Cc-paypal Cc-stripe Cc-visa Cc-mastercard Bitcoin
Cloud VPS
  • Hong Kong VPS
  • US VPS
Dedicated Servers
  • Hong Kong Servers
  • US Servers
  • Singapore Servers
  • Japan Servers
More
  • Contact Us
  • Blog
  • Legal
© 2026 Server.HK | Hosting Limited, Hong Kong | Company Registration No. 77008912
Telegram
Telegram @ServerHKBot