1.\" $OpenBSD: atq.1,v 1.7 2015/09/09 21:23:30 schwarze Exp $ 2.\" 3.\" Copyright (c) 1985, 1990, 1993 4.\" The Regents of the University of California. All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright 10.\" notice, this list of conditions and the following disclaimer. 11.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" notice, this list of conditions and the following disclaimer in the 13.\" documentation and/or other materials provided with the distribution. 14.\" 3. Neither the name of the University nor the names of its contributors 15.\" may be used to endorse or promote products derived from this software 16.\" without specific prior written permission. 17.\" 18.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 19.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 22.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28.\" SUCH DAMAGE. 29.\" 30.\" @(#)atq.1 8.1 (Berkeley) 6/6/93 31.\" 32.Dd $Mdocdate: September 9 2015 $ 33.Dt ATQ 1 34.Os 35.Sh NAME 36.Nm atq 37.Nd display the at(1) job queue 38.Sh SYNOPSIS 39.Nm atq 40.Op Fl cnv 41.Op Fl q Ar queue 42.Op Ar name ... 43.Sh DESCRIPTION 44.Nm atq 45displays the queue of jobs, created by the 46.Xr at 1 47command, which are currently awaiting execution. 48Unless the user is the superuser, only the user's own jobs will be displayed. 49With no flags, the queue is sorted in the order that 50the jobs will be executed. 51.Pp 52The options are as follows: 53.Bl -tag -width "-q queueX" 54.It Fl c 55Sort the queue by the time that the jobs were submitted (created). 56By default, 57.Nm 58will sort the queue by the time that the jobs will run. 59.It Fl n 60Only print the total number of files that are currently in the queue. 61.It Fl q Ar queue 62Restrict output to jobs in the specified 63.Ar queue . 64A queue designation consists of a single letter. 65Valid queue designations range from 66.Sy a 67to 68.Sy z 69and 70.Sy A 71to 72.Sy Z . 73The 74.Sy c 75queue is the default for 76.Xr at 1 77and the 78.Sy E 79queue for 80.Xr batch 1 . 81By default, 82.Nm 83will display jobs in all queues. 84.It Fl v 85Jobs that have completed but have not yet been removed are also displayed. 86.El 87.Pp 88If a name(s) is provided, only those files belonging to that user(s) are 89displayed. 90.Sh FILES 91.Bl -tag -width /var/cron/atjobs -compact 92.It Pa /var/cron/atjobs 93directory containing job files 94.El 95.Sh SEE ALSO 96.Xr at 1 , 97.Xr atrm 1 , 98.Xr cron 8 99.Sh HISTORY 100The 101.Nm 102command appeared in 103.Bx 4.3 . 104