atq command in linux with examples
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’.

- atq without arguments display all pending jobs of User.
Alternative Command for atq:
at -l
- Showing all the jobs.

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

Recommended Posts:
- top command in Linux with Examples
- tee command in Linux with examples
- col command in Linux with Examples
- for command in Linux with Examples
- help Command in Linux with examples
- df Command in Linux with examples
- arp command in Linux with examples
- ps command in Linux with Examples
- ar command in Linux with examples
- ex command in Linux with examples
- ln command in Linux with Examples
- cal command in Linux with Examples
- rcp Command in Linux with examples
- seq command in Linux with Examples
- rm command in Linux with examples
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



