Skip to content
Related Articles
Get the best out of our app
GFG App
Open App
geeksforgeeks
Browser
Continue

Related Articles

atq command in linux with examples

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

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’.

    My Personal Notes arrow_drop_up
Last Updated : 04 Apr, 2019
Like Article
Save Article
Similar Reads
Related Tutorials