Home >Operation and Maintenance >Linux Operation and Maintenance >How to use the atq command in linux
atq can display the queue of jobs scheduled to run in Linux. The specific usage is as follows: View all scheduled jobs: atq View scheduled jobs for a specific user: atq -u Username View the command line of the job: atq -c Job number View the queue information of the job: atq -q Job number View the details of the job Message: atq -V job number
Usage of atq command in Linux
atq
Command is used to display the queue of jobs scheduled to run at a given time. You can use this command to check information such as scheduled jobs on your system, their status, and scheduled execution time.
Syntax:
<code class="bash">atq [选项] [用户列表]</code>
Options:
Using:
To view all scheduled jobs without options, just enter the following command:
<code class="bash">atq</code>
This A list is displayed with the following information:
To view scheduled jobs for a specific user, please Use the -u
option followed by the username:
<code class="bash">atq -u username</code>
To view the job's command line, use the -c
option:
<code class="bash">atq -c job_number</code>
To view the job's command line Queue information, use -q
option:
<code class="bash">atq -q job_number</code>
To view job details, use -V
option:
<code class="bash">atq -V job_number</code>
The above is the detailed content of How to use the atq command in linux. For more information, please follow other related articles on the PHP Chinese website!