Open In App

atq command in linux with examples

Improve
Improve
Like Article
Like
Save
Share
Report

atq displays the list of pending jobs which are scheduled by the user. If the user is the superuser then the pending jobs of all the users will be displayed. The output lines display Job number, date, hour, queue, and username for each job.

Syntax:

atq [-V] [-q queue]

Options:

  • -V: It will display the version number to standard error and exit successfully.

  • -q: Shows job of specified queue. A queue can be denoted by any single letter from a to z and A to Z. For ‘at’, a is the default queue and for ‘batch’, b queue is default. For a currently running job, queue name will be designated with “=”. If a job is submitted to a queue designated with an uppercase letter, the job is treated as if it were submitted to batch at the time of the job.
    • atq without arguments display all pending jobs of User.

    • atq without arguments display all pending jobs of all users if the root is the user.

    • To display jobs which belong to a specific queue:
      atq -q Queue

      Below image is showing all the jobs which belongs to queue ‘m’.

  • Alternative Command for atq:

    at -l 
    • Showing all the jobs.
    • Showing all the jobs which belongs to queue ‘a’.


    Last Updated : 04 Apr, 2019
    Like Article
    Save Article
    Previous
    Next
    Share your thoughts in the comments
Similar Reads