atq command in linux with examples
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:
- atq without arguments display all pending jobs of User.
at -l
- Showing all the jobs.
- Showing all the jobs which belongs to queue 'a'.