📄 483-487.html
字号:
<HTML>
<HEAD>
<TITLE>Linux in Plain English:Linux Commands Organized by Group</TITLE>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>
-->
<!--ISBN=1558285423//-->
<!--TITLE=Linux in Plain English//-->
<!--AUTHOR=Patrick Volkerding//-->
<!--AUTHOR=Kevin Reichard//-->
<!--PUBLISHER=IDG Books Worldwide, Inc.//-->
<!--IMPRINT=M & T Books//-->
<!--CHAPTER=5//-->
<!--PAGES=483-487//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="474-483.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="487-493.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<P><FONT SIZE="+1"><B><I>OPTIONS</I></B></FONT></P>
<TABLE WIDTH="100%">
<TR>
<TD WIDTH="20%"><B>-b</B>
<TD WIDTH="80%">The same as the <B>batch</B> command.
<TR>
<TD><B>-d</B>
<TD>The same as the <B>atrm</B> command.
<TR>
<TD VALIGN="TOP"><B>-f <I>file</I></B>
<TD>Takes input (that is, the names of commands) from <I>file</I> instead of standard input.
<TR>
<TD><B>-l</B>
<TD>The same as the <B>atq</B> command
<TR>
<TD><B>-m</B>
<TD>Sends electronic mail when the job is completed.
<TR>
<TD VALIGN="TOP"><B>-q <I>queue</I></B>
<TD>Sets the niceness level for the <B>at</B> command, using a queue designation. This designation is a single letter, ranging from <B>a</B> to <B>z</B>. The higher the letter, the “nicer” the command will run (see <B>nice</B> for a description of niceness and the Linux operating system). The default for <B>at</B> is <B>c</B>, so if you want a command to be run when the system has less stress, you’d choose a letter like <B>m</B> as the queue designation. Conversely, if you want a command to be run no matter what, you’d use a queue designation of <B>a</B>.
<TR>
<TD><B>-V</B>
<TD>Prints the version number.
</TABLE>
<P><FONT SIZE="+1"><B><I>RELATED COMMANDS</I></B></FONT></P>
<DL>
<DD><B>atq</B>
<DD><B>artm</B>
<DD><B>batch</B>
</DL>
<P><FONT SIZE="+1"><B>at......<TT>Print At</TT></B></FONT></P>
<P><B>atq</B> <I>option user job-ID</I></P>
<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>
<P>The <B>atq</B> command lists all jobs that are already scheduled with the <B>at</B> command (for the superuser) or the jobs of a specific user, as well as a specific job ID. This is the same as <B>at -l</B>.</P>
<P><FONT SIZE="+1"><B><I>OPTIONS</I></B></FONT></P>
<TABLE WIDTH="100%">
<TR>
<TD WIDTH="20%" VALIGN="TOP"><B>-q <I>queue</I></B>
<TD WIDTH="80%">Sets the niceness level for the <B>at</B> command, using a queue designation. This designation is a single letter, ranging from <B>a</B> to <B>z</B>. The higher the letter, the “nicer” the command will run (see <B>nice</B> for a description of niceness and the Linux operating system). The default for <B>at</B> is <B>c</B>, so if you want a command to be run when the system has less stress, you’d choose a letter like <B>m</B> as the queue designation. Conversely, if you want a command to be run no matter what, you’d use a queue designation of <B>a</B>.
<TR>
<TD VALIGN="TOP"><B>-v</B>
<TD>Shows jobs that have been completed but not yet deleted from the queue.
</TABLE>
<P><FONT SIZE="+1"><B><I>RELATED COMMANDS</I></B></FONT></P>
<DL>
<DD><B>at</B>
<DD><B>atrm</B>
<DD><B>batch</B>
</DL>
<P><FONT SIZE="+1"><B>atrm......<TT>Remove Job</TT></B></FONT></P>
<P><B>atrm</B> <I>option user job-ID</I></P>
<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>
<P>The <B>atrm</B> command removed jobs scheduled with the <B>at</B> command. Superusers can delete all jobs, while other users can remove only their own jobs. This is the same as <B>at -d</B>.</P>
<P><FONT SIZE="+1"><B><I>RELATED COMMANDS</I></B></FONT></P>
<DL>
<DD><B>at</B>
<DD><B>atq</B>
<DD><B>batch</B>
</DL>
<P><FONT SIZE="+1"><B>batch......<TT>Run Batch Commands</TT></B></FONT></P>
<P><B>batch</B> <I>option(s) time</I></P>
<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>
<P>The <B>batch</B> command runs a series of commands one at a time, which are entered from a command line as standard input. The difference between <B>batch</B> and <B>at</B> is that <B>batch</B> automatically runs the commands when the system load is light; in these cases, you don’t specify when the command is to be run. However, you can specify an execution time with the <B>batch</B> command.</P>
<P>When you have finished entering the commands from the command line, use <B>Ctrl-D</B> to end input.</P>
<P><FONT SIZE="+1"><B><I>OPTIONS</I></B></FONT></P>
<TABLE WIDTH="100%">
<TR>
<TD WIDTH="20%" VALIGN="TOP"><B>-f <I>file</I></B>
<TD WIDTH="80%">Runs commands from <I>file</I>, not from standard input on the command line.
<TR>
<TD><B>-m</B>
<TD>Sends electronic mail when the job is completed.
</TABLE>
<P><FONT SIZE="+1"><B><I>EXAMPLE</I></B></FONT></P>
<!-- CODE SNIP //-->
<PRE>
$ batch
pr -a kevin.memo
lp kevin.memo
Ctrl-D
</PRE>
<!-- END CODE SNIP //-->
<P><FONT SIZE="+1"><B><I>RELATED COMMAND</I></B></FONT></P>
<DL>
<DD><B>at</B>
</DL>
<P><FONT SIZE="+1"><B>cpio......<TT>Create Archive</TT></B></FONT></P>
<P><B>cpio</B> <I>flags option(s)</I></P>
<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>
<P>The <B>cpio</B> command is used to create archives, either on a local filesystem or on a tape backup. The default is to copy to a tape archive.</P>
<P><FONT SIZE="+1"><B><I>FLAGS</I></B></FONT></P>
<P>The <B>cpio</B> command must be combined with one or more of the following flags:</P>
<TABLE WIDTH="100%"><TR>
<TD WIDTH="40%" VALIGN="TOP"><B>-i <I>option patterns</I></B>
<TD WIDTH="60%">Copies all files that match <I>patterns</I>, which can incorporate wildcards. (If you use wildcards, you must quote them so that the shell doesn’t interpret them.) If you don’t specify a <I>pattern</I>, then all files are copied.
<TR>
<TD><B>-o <I>options</I></B>
<TD>Copies all files specified by name.
<TR>
<TD VALIGN="TOP"><B>-p <I>options directory</I></B>
<TD>Copies files to a local directory, instead of to a tape archive.
</TABLE>
<P>The options available to each flag is part of the explanations of each option.
</P><P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="474-483.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="487-493.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
</td>
</tr>
</table>
<!-- begin footer information -->
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -