?? appb_02.htm
字號:
<html><head><title>Alphabetical Summary of Commands (UNIX in a Nutshell: System V Edition)</title><link rel="stylesheet" type="text/css" href="../style/style1.css" /><meta name="DC.Creator" content="Arnold Robbins" /><meta name="DC.Format" content="text/xml" scheme="MIME" /><meta name="DC.Language" content="en-US" /><meta name="DC.Publisher" content="O'Reilly & Associates, Inc." /><meta name="DC.Source" scheme="ISBN" content="1-56592-427-4" /><meta name="DC.Subject.Keyword" content="stuff" /><meta name="DC.Title" content="UNIX in a Nutshell: System V Edition" /><meta name="DC.Type" content="Text.Monograph" /></head><body bgcolor="#ffffff"><img src="gifs/smbanner.gif" usemap="#banner-map" border="0" alt="Book Home" /><map name="banner-map"><area shape="rect" coords="1,-2,616,66" href="index.htm" alt="Book Title" /><area shape="rect" coords="629,-11,726,25" href="jobjects/fsearch.htm" alt="Search this book" /></map><div class="navbar"><table width="684" border="0"><tr><td align="left" valign="top" width="228"><a href="appb_01.htm"><img src="../gifs/txtpreva.gif" alt="Previous" border="0" /></a></td><td align="center" valign="top" width="228" /><td align="right" valign="top" width="228"><a href="biblio.htm"><img src="../gifs/txtnexta.gif" alt="Next" border="0" /></a></td></tr></table></div><h2 class="sect1">B.2. Alphabetical Summary of Commands</h2><table border="1" cellpadding="5"><tr><td valign="top"><a name="bfs">bfs</a></td><td><p><tt class="literal">bfs</tt> [<em class="replaceable"><tt>option</em>] <em class="replaceable">file</tt></em></p><p><a name="IXT-B-121626" /><a name="IXT-B-121627" /><a name="IXT-B-121628" />Big file scanner. Read a large <em class="emphasis">file</em>, using<tt class="literal">ed</tt>-like syntax.This command is more efficient than <tt class="literal">ed</tt> for scanning very large filesbecause the file is not read into a buffer. Files can be up to 1024K bytes.<tt class="literal">bfs</tt> can be used to view a large file and identify sectionsto be divided with <tt class="literal">csplit</tt>. Not too useful.</p><h4 class="refsect2">Option</h4><dl><dt><tt class="literal">-</tt></dt><dd>Do not print the file size.</p></dd></dl></td></tr><tr><td valign="top">cof2elf</td><td><p><tt class="literal">cof2elf</tt> [<tt><em class="replaceable"><tt>options</em></tt>] <tt><em class="replaceable">files</tt></em></tt></p><p><a name="IXT-B-121629" /><a name="IXT-B-121630" /><a name="IXT-B-121631" /><a name="IXT-B-121632" />Convert one or more COFF <em class="emphasis">files</em></tt> to ELF format,overwriting the original contents.Input can be object files or archives.</p><h4 class="refsect2">Options</h4><dl><dt><tt class="literal">-i</tt></dt><dd>Ignore unrecognized data; do the conversion anyway.</p></dd><dt><tt class="literal">-q</tt></dt><dd>Quiet mode; suppress messages while running.</p></dd><dt><tt class="literal">-Q</tt><tt><em class="replaceable">c</em></tt></dt><dd>Print information about <tt class="literal">cof2elf</tt> in output (if <em class="emphasis">c</em></tt> = <tt class="literal">y</tt>)or suppress information (if <em class="emphasis">c</em> = <tt class="literal">n</tt>, the default).</p></dd><dt><tt class="literal">-s</tt><tt><em class="replaceable">dir</em></tt></dt><dd>Save the original files to an existing directory <em class="emphasis">dir</em></tt>.</p></dd><dt><tt class="literal">-V</tt></dt><dd>Print the version of <tt class="literal">cof2elf</tt> on standard error.</p></dd></dl></td></tr><tr><td valign="top"><a name="crypt">crypt</a></td><td><p><tt class="literal">crypt</tt> [<em class="replaceable"><tt>password</em>] < <em class="replaceable">file</em> > <em class="replaceable">encryptedfile</tt></em></p><p><a name="IXT-B-121633" /><a name="IXT-B-121634" /><a name="IXT-B-121635" />Encrypt a <em class="emphasis">file</em> to prevent unauthorized access.<em class="emphasis">password</em> iseither a string of characters you choose or the option <tt class="literal">-k</tt>,which assigns the value of the environment variable CRYPTKEY(Solaris: CrYpTkEy)as thepassword. The same <em class="emphasis">password</em> encrypts a file ordecrypts an encrypted file. If no password is given, <tt class="literal">crypt</tt>prompts for one. <tt class="literal">crypt</tt> is available only in the United States(due to export restrictions).</p><p>The algorithm used is considered weak, and this command shouldnot be used for serious encryption.See <em class="citetitle">PGP: Pretty Good Privacy</em>, listed in the <a href="biblio.htm">Bibliography</a>.</p></td></tr><tr><td valign="top"><a name="cu">cu</a></td><td><p><tt class="literal">cu</tt> [<em class="replaceable"><tt>options</em>] [<em class="replaceable">destination</em>] [<em class="replaceable">command</tt></em>]</p><p><a name="IXT-B-121636" /><a name="IXT-B-121637" /><a name="IXT-B-121638" />Call up another Unix system or a terminal via a direct line ora modem. A non-Unix system can also be called. </p><h4 class="refsect2">Options</h4><dl><dt><tt class="literal">-b</tt><tt><em class="replaceable">n</em></tt></dt><dd>Process lines using <em class="emphasis">n</em></tt>-bit characters (7 or 8).</p></dd><dt><tt class="literal">-c</tt><tt><em class="replaceable">name</em></tt></dt><dd>Search UUCP's <tt class="literal">Devices</tt> file and select the local area networkthat matches <em class="emphasis">name</em> (this assumes connection to a system).</p></dd><dt><tt class="literal">-C</tt></dt><dd>Instead of entering interactive mode,run the <em class="emphasis">command</em></tt> from the command line with standardinput and standard output connected to the remote system.Solaris only.</p></dd><dt><tt class="literal">-d</tt></dt><dd>Print diagnostics.</p></dd><dt><tt class="literal">-e</tt></dt><dd>Send even-parity data to remote system.</p></dd><dt><tt class="literal">-h</tt></dt><dd>Emulate local echo and support calls to othersystems expecting terminals to use half duplex mode.</p></dd><dt><tt class="literal">-H</tt></dt><dd>Ignore one hangup.Useful when calling a remote system that will disconnect andcall you back with a login prompt.Solaris only.</p></dd><dt><tt class="literal">-l</tt><tt><em class="replaceable">line</em></tt></dt><dd>Communicate on device named <em class="emphasis">line</em></tt> (e.g., <tt class="literal">/dev/tty001</tt>).</p></dd><dt><tt class="literal">-L</tt></dt><dd>Use the chat sequence specified in <tt class="literal">/etc/uucp/Systems</tt>.Solaris only.</p></dd><dt><tt class="literal">-n</tt></dt><dd>Prompt user for a telephone number.</p></dd><dt><tt class="literal">-o</tt></dt><dd>Use odd parity (opposite of <tt class="literal">-e</tt>).</p></dd><dt><tt class="literal">-s</tt><tt><em class="replaceable">n</em></tt></dt><dd>Set transmission rate to <em class="emphasis">n</em></tt> (e.g., 1200, 2400, 9600 bps). Defaultis <tt class="literal">Any</tt>.</p></dd><dt><tt class="literal">-t</tt></dt><dd>Dial an ASCII terminal that has auto-answer set.</p></dd></dl><h4 class="refsect2">Destination</h4><table border="1" cellpadding="3"><tr><td><tt><em class="replaceable"><tt>telno</tt></em></tt></td><td><p>The telephone number of the modem to connect to. </p></td></tr><tr><td><tt><em class="replaceable"><tt>system</em></tt></td><td><p>Call the <em class="emphasis">system</tt></em></tt> known to <tt class="literal">uucp</tt> (run <tt class="literal">uuname</tt> to list valid system names).</p></td></tr><tr><td><tt><em class="replaceable"><tt>addr</tt></em></tt></td><td><p>An address specific to your local area network.</p></td></tr></table><p><p><tt class="literal">cu</tt> runs as two processes: transmit and receive. Transmitreads from standard input and passes characters to the remote system;receive reads data from the remote system and passes lines to standard output. Lines that begin with a tilde (<tt class="literal">~</tt>) are treated as commands and not passed.</p><h4 class="refsect2">Transmit Options</h4><dl><dt><tt class="literal">~.</tt></dt><dd>Terminate the conversation.</p></dd><dt><tt class="literal">~!</tt></dt><dd>Escape to an interactive shell on the local system.</p></dd><dt><tt class="literal">~!</tt><tt><em class="replaceable">cmd</em></tt> ...</dt><dd>Run command on local system (via <tt class="literal">sh -c</tt>).</p></dd><dt><tt class="literal">~$</tt><tt><em class="replaceable">cmd</em></tt> ... </dt><dd>Run command locally; send output to remote system.</p></dd><dt><tt class="literal">~%cd</tt></dt><dd>Change directory on the local system.</p></dd><dt><tt class="literal">~%take</tt> <tt><em class="replaceable">file</em></tt> [<tt><em class="replaceable">target</em></tt>]</dt><dd>Copy <em class="emphasis">file</em></tt> from remote system to <em class="emphasis">target</em></tt> on the local system.If <em class="emphasis">target</em></tt> is omitted, <em class="emphasis">file</em></tt> is used in both places.The remote system must be running Unix for this command to work.No checksumming of the transmitted data is provided.</p></dd><dt><tt class="literal">~%put</tt> <tt><em class="replaceable">file</em></tt> [<tt><em class="replaceable">target</em></tt>]</dt><dd>Copy <em class="emphasis">file</em></tt> from the local system to <em class="emphasis">target</em></tt> on the remotesystem. If <em class="emphasis">target</em> is omitted, <em class="emphasis">file</em> is used in both places.The remote system must be running Unix for this command to work.No checksumming of the transmitted data is provided.</p></dd><dt><tt class="literal">~~ ...</tt></dt><dd>Use two tildes when you want to pass a line that begins with a tilde.This lets you issue commands to more than one system in a <tt class="literal">cu</tt> chain. For example, use <tt class="literal">~~.</tt> to terminate the conversation on a second system <tt class="literal">cu</tt> dto from the first.</p></dd><dt><tt class="literal">~%b</tt></dt><dd>Send a BREAK sequence to the remote system.</p></dd><dt><tt class="literal">~%d</tt></dt><dd>Turn debug mode on or off.</p></dd><dt><tt class="literal">~t</tt></dt><dd>Print termio structure for local terminal.(Intended for debugging.)</p></dd><dt><tt class="literal">~l</tt></dt><dd>Print termio structure for communication line.(Intended for debugging.)</p></dd><dt><tt class="literal">~%ifc</tt></dt><dd>Turn on/off the DC3/DC1 XOFF/XON control protocol(characters <tt class="literal">^S</tt>, <tt class="literal">^Q</tt>) for the remainder of the session (formerly <tt class="literal">~%nostop</tt>, which is stillvalid).</p></dd><dt><tt class="literal">~%ofc</tt></dt><dd>Set output flow control either on or off.</p></dd><dt><tt class="literal">~%divert</tt></dt><dd>Allow/prevent diversions not specified by <tt class="literal">~%take</tt>.</p></dd><dt><tt class="literal">~%old</tt></dt><dd>Allow/prevent old-style syntax for diversions received.</p></dd></dl><h4 class="refsect2">Examples</h4><p>Connect to terminal line <tt class="literal">/dev/ttya</tt> at 9600 baud:</p><blockquote><pre class="code"><tt class="userinput"><b>cu -s9600 -l/dev/ttya</b></tt></pre></blockquote><p>Connect to modem with phone number 555-9876:</p><blockquote><pre class="code"><tt class="userinput"><b>cu 5559876</b></tt></pre></blockquote><p>Connect to system named <tt class="literal">usenix</tt>:</p><blockquote><pre class="code"><tt class="userinput"><b>cu usenix</b></tt></pre></blockquote></td></tr><tr><td valign="top"><a name="face">face</a></td><td><p><tt class="literal">face</tt> [<tt><em class="replaceable"><tt>options</em></tt>] [<tt><em class="replaceable">files</tt></em></tt>]</p><p><a name="IXT-B-121639" /><a name="IXT-B-121640" />Invoke the Framed Access Command Environment Interface and open<em class="emphasis">files</em></tt>. By convention, each filename must be of the form<tt class="literal">Menu.</tt><em class="emphasis">string</em></tt>,<tt class="literal">Form.</tt><em class="emphasis">string</em></tt>, or<tt class="literal">Text.</tt><em class="emphasis">string</em></tt>, depending on the type of objectbeing opened. If no <em class="emphasis">files</em></tt> are specified, <tt class="literal">face</tt>opens the FACE menu along with the default objects specified by theenvironment variable LOGINWIN.</p><h4 class="refsect2">Options</h4><dl><dt><tt class="literal">-a</tt> <tt><em class="replaceable">afile</em></tt></dt><dd>Load the list of pathname aliases specified in the file <em class="emphasis">afile</em></tt>.Entries have the form <em class="emphasis">alias</em><tt class="literal">=</tt><em class="emphasis">pathname</em>.Once this file is loaded,you can use the shorthand notation <tt class="literal">$</tt><em class="emphasis">alias</em>to refer to a longpathname.</p></dd><dt><tt class="literal">-c</tt> <tt><em class="replaceable">cfile</em></tt></dt><dd>Load the list of command aliases specified in the file <em class="emphasis">cfile</em></tt>.This file allows you to modify the default behavior of FACE commandsor create new commands.</p></dd><dt><tt class="literal">-i</tt> <tt><em class="replaceable">ifile</em></tt></dt><dd>Load file <em class="emphasis">ifile</em></tt>, which specifies startup features such as the introductory frame, banner information, screen colors, and labels.</p></dd></dl></td></tr><tr><td valign="top"><a name="fmli">fmli</a></td><td><p><tt class="literal">fmli</tt> [<em class="replaceable"><tt>options</em>] <em class="replaceable">files</tt></em></p><p><a name="IXT-B-121641" /><a name="IXT-B-121642" /><a name="IXT-B-121643" />Invoke the Form and Menu Language Interpreter and open <em class="emphasis">files</em>.By convention, each filename must be of the form <tt class="literal">Menu.</tt><em class="emphasis">string</em>, <tt class="literal">Form.</tt><em class="emphasis">string</em>, or <tt class="literal">Text.</tt><em class="emphasis">string</em>, depending on the type of object being opened.</p><h4 class="refsect2">Options</h4><dl><dt><tt class="literal">-a</tt> <tt><em class="replaceable">afile</em></tt></dt><dd>Load the list of pathname aliases specified in the file <em class="emphasis">afile</em></tt>.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -