Fix up some uses of <screen> and the use of <emphasis> elements within
and near it. Most of the time this consisted of replacing the <emphasis> with <replaceable> or <userinput>. Sometimes <screen> is the wrong element to use, and will need replacing with something like <programlisting> or <literallayout>.
This commit is contained in:
parent
03b3acb244
commit
bab9c37eab
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=3412
4 changed files with 253 additions and 252 deletions
|
@ -318,4 +318,8 @@ for example,
|
|||
26. <emphasis remap=..>...</emphasis> -> <makevar>...</makevar>
|
||||
|
||||
27. <emphasis remap=..>...</emphasis> -> <maketarget>...</maketarget>
|
||||
|
||||
28. Fix up some uses of <screen> and the use of <emphasis> elements within
|
||||
and near it. Most of the time this consisted of replacing the <emphasis>
|
||||
with <replaceable> or <userinput>.
|
||||
|
||||
|
|
|
@ -1932,14 +1932,14 @@
|
|||
command. Use of the <emphasis remap=tt><emphasis
|
||||
remap=bf>man</emphasis></emphasis> command is simple:
|
||||
<informalexample>
|
||||
<screen><emphasis remap=bf>man</emphasis> <emphasis
|
||||
remap=it>command</emphasis></screen>
|
||||
</informalexample> where <emphasis remap=it>command</emphasis> is
|
||||
<screen>
|
||||
<userinput>man <replaceable>command</replaceable></userinput>
|
||||
</screen>
|
||||
</informalexample> where <replaceable>command</replaceable> is
|
||||
the name of the command you wish to learn about. For example, to
|
||||
learn more about <emphasis remap=tt><emphasis
|
||||
remap=bf>ls</emphasis></emphasis> command type:
|
||||
learn more about <command>ls</command> command type:
|
||||
<informalexample>
|
||||
<screen>% <emphasis remap=bf>man ls</emphasis></screen>
|
||||
<screen>% <userinput>man ls</userinput></screen>
|
||||
</informalexample>
|
||||
</para>
|
||||
|
||||
|
@ -1987,7 +1987,7 @@
|
|||
remap=bf>man</emphasis></emphasis> command which one you want by
|
||||
specifying the section:
|
||||
<informalexample>
|
||||
<screen>% <emphasis remap=bf>man 1 chmod</emphasis></screen>
|
||||
<screen>% <userinput>man 1 chmod</userinput></screen>
|
||||
</informalexample> which will display the manual page for the user
|
||||
command <emphasis remap=tt><emphasis
|
||||
remap=bf>chmod</emphasis></emphasis>. References to a
|
||||
|
@ -2004,7 +2004,7 @@
|
|||
command <emphasis>descriptions</emphasis> by using the <emphasis
|
||||
remap=tt><option>-k</option></emphasis> switch:
|
||||
<informalexample>
|
||||
<screen>% <command>man -k mail</command></screen>
|
||||
<screen>% <userinput>man -k mail</userinput></screen>
|
||||
</informalexample> With this command you will be presented with a
|
||||
list of commands that have the keyword <quote>mail</quote> in their descriptions.
|
||||
This is actually functionally equivalent to using the <emphasis
|
||||
|
@ -2015,10 +2015,10 @@
|
|||
<filename>/usr/bin</filename> but do not even have the faintest idea
|
||||
what most of them actually do? Simply do a
|
||||
<informalexample>
|
||||
<screen>% <command>cd /usr/bin; man -f *</command></screen>
|
||||
<screen>% <userinput>cd /usr/bin; man -f *</userinput></screen>
|
||||
</informalexample> or
|
||||
<informalexample>
|
||||
<screen>% <command>cd /usr/bin; whatis *</command></screen>
|
||||
<screen>% <userinput>cd /usr/bin; whatis *</userinput></screen>
|
||||
</informalexample> which does the same thing.</para>
|
||||
|
||||
</sect1>
|
||||
|
@ -2036,7 +2036,7 @@
|
|||
|
||||
<para>To use the <citerefentry><refentrytitle>info</refentrytitle><manvolnum>1</manvolnum></citerefentry> command, simply type:
|
||||
<informalexample>
|
||||
<screen>% <emphasis remap=bf>info</emphasis></screen>
|
||||
<screen>% <userinput>info</userinput></screen>
|
||||
</informalexample> For a brief introduction, type <emphasis
|
||||
remap=tt><emphasis remap=bf>h</emphasis></emphasis>. For a quick
|
||||
command reference, type <emphasis remap=tt><emphasis
|
||||
|
@ -5951,13 +5951,18 @@
|
|||
<title>Altering the IPFW rules</title>
|
||||
|
||||
<para>The syntax for this form of the command is:
|
||||
<informalexample>
|
||||
<screen>ipfw [-N] <emphasis>command</emphasis>
|
||||
[<emphasis>index</emphasis>] <emphasis>action</emphasis>
|
||||
[log] <emphasis>protocol</emphasis>
|
||||
<emphasis>addresses</emphasis>
|
||||
[<emphasis>options</emphasis>]</screen>
|
||||
</informalexample>
|
||||
<cmdsynopsis>
|
||||
<command>ipfw</command>
|
||||
<arg>-N</arg>
|
||||
<arg choice="plain">command</arg>
|
||||
<arg>index</arg>
|
||||
<arg choice="plain">action</arg>
|
||||
<arg>log</arg>
|
||||
<arg choice="plain">protocol</arg>
|
||||
<arg choice="plain">addresses</arg>
|
||||
<arg>options</arg>
|
||||
</command>
|
||||
</cmdsynopsis>
|
||||
</para>
|
||||
|
||||
<para>There is one valid flag when using this form of the
|
||||
|
@ -6246,9 +6251,13 @@
|
|||
<title>Listing the IPFW rules</title>
|
||||
|
||||
<para>The syntax for this form of the command is:
|
||||
<informalexample>
|
||||
<screen>ipfw [-atN] l</screen>
|
||||
</informalexample>
|
||||
<cmdsynopsis>
|
||||
<command>ipfw</command>
|
||||
<arg>-a</arg>
|
||||
<arg>-t</arg>
|
||||
<arg>-N</arg>
|
||||
<arg choice="plain">l</arg></command>
|
||||
</cmdsynopsis>
|
||||
</para>
|
||||
|
||||
<para>There are three valid flags when using this form of the
|
||||
|
@ -6305,9 +6314,11 @@
|
|||
<title>Clearing the IPFW packet counters</title>
|
||||
|
||||
<para>The syntax for clearing one or more packet counters is:
|
||||
<informalexample>
|
||||
<screen>ipfw zero [index]</screen>
|
||||
</informalexample>
|
||||
<cmdsynopsis>
|
||||
<command>ipfw</command>
|
||||
<arg choice="plain">zero</arg>
|
||||
<arg>index</arg></command>
|
||||
</cmdsynopsis>
|
||||
</para>
|
||||
|
||||
<para>When used without an <emphasis>index</emphasis> argument,
|
||||
|
@ -6930,9 +6941,9 @@
|
|||
<para>To find out if the kernel you are currently using supports a
|
||||
serial interface, type
|
||||
<informalexample>
|
||||
<screen><command>dmesg | grep
|
||||
sio</command><emphasis remap=it>N</emphasis></screen>
|
||||
</informalexample> where <emphasis remap=it>N</emphasis> is the
|
||||
<screen><userinput>dmesg | grep
|
||||
sio<replaceable>N</replaceable></userinput></screen>
|
||||
</informalexample> where <replaceable>N</replaceable> is the
|
||||
number of the serial port, starting from zero. If you see
|
||||
output similar to the following
|
||||
<informalexample>
|
||||
|
@ -6943,9 +6954,9 @@
|
|||
<para>To find out if the kernel supports a parallel interface,
|
||||
type
|
||||
<informalexample>
|
||||
<screen><command>dmesg | grep
|
||||
lpt</command><emphasis remap=it>N</emphasis></screen>
|
||||
</informalexample> where <emphasis remap=it>N</emphasis> is the
|
||||
<screen><userinput>dmesg | grep
|
||||
lpt<replaceable>N</replaceable></userinput></screen>
|
||||
</informalexample> where <replaceable>N</replaceable> is the
|
||||
number of the parallel port, starting from zero. If you see
|
||||
output similar to the following
|
||||
<informalexample>
|
||||
|
@ -6996,10 +7007,9 @@
|
|||
<listitem>
|
||||
<para>Type
|
||||
<informalexample>
|
||||
<screen><command> ./MAKEDEV</command>
|
||||
<emphasis remap=it>port</emphasis></screen>
|
||||
</informalexample> where <emphasis
|
||||
remap=it>port</emphasis> is the device entry for the
|
||||
<screen><userinput> ./MAKEDEV
|
||||
<replaceable>port</replaceable></userinput></screen>
|
||||
</informalexample> where <replaceable>port</replaceable> is the device entry for the
|
||||
port you want to make. Use <literal>lpt0</literal> for the first parallel port,
|
||||
<literal>lpt1</literal> for the second, and
|
||||
so on; use <literal>ttyd0</literal> for the
|
||||
|
@ -7011,8 +7021,7 @@
|
|||
<listitem>
|
||||
<para>Type
|
||||
<informalexample>
|
||||
<screen><command>ls -l</command> <emphasis
|
||||
remap=it>port</emphasis></screen>
|
||||
<screen><userinput>ls -l <replaceable>port</replaceable></userinput></screen>
|
||||
</informalexample> to make sure the device entry got
|
||||
created.</para>
|
||||
</listitem>
|
||||
|
@ -7077,11 +7086,10 @@
|
|||
<para>If you want interrupt-driven mode, add the
|
||||
<literal>irq</literal> specifier:
|
||||
<informalexample>
|
||||
<screen><emphasis remap=tt>device lpt0 at isa?
|
||||
<screen>device lpt0 at isa?
|
||||
port? tty irq <replaceable>N</replaceable>
|
||||
vector lptintr</emphasis></screen>
|
||||
</informalexample> where <emphasis
|
||||
remap=it>N</emphasis> is the IRQ number for your
|
||||
vector lptintr</screen>
|
||||
</informalexample> where <replaceable>N</replaceable> is the IRQ number for your
|
||||
computer's parallel port.
|
||||
</para>
|
||||
</listitem>
|
||||
|
@ -7090,8 +7098,8 @@
|
|||
<para>If you want polled mode, do not add the
|
||||
<literal>irq</literal> specifier:
|
||||
<informalexample>
|
||||
<screen><emphasis remap=tt>device lpt0 at isa?
|
||||
port? tty vector lptintr</emphasis>
|
||||
<screen>device lpt0 at isa?
|
||||
port? tty vector lptintr
|
||||
</screen>
|
||||
</informalexample>
|
||||
</para>
|
||||
|
@ -7119,21 +7127,19 @@
|
|||
<listitem>
|
||||
<para>Type
|
||||
<informalexample>
|
||||
<screen><command>lptcontrol -i -u
|
||||
<replaceable>N</replaceable></command></screen>
|
||||
<screen><userinput>lptcontrol -i -u
|
||||
<replaceable>N</replaceable></userinput></screen>
|
||||
</informalexample> to set interrupt-driven mode for
|
||||
<emphasis
|
||||
remap=tt>lpt<replaceable>N</replaceable></emphasis>.
|
||||
<literal>lpt<replaceable>N</replaceable></literal>.
|
||||
</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>Type
|
||||
<informalexample>
|
||||
<screen><command>lptcontrol -p -u
|
||||
<replaceable>N</replaceable></command></screen>
|
||||
</informalexample> to set polled-mode for <emphasis
|
||||
remap=tt>lpt<replaceable>N</replaceable></emphasis>.</para>
|
||||
<screen><userinput>lptcontrol -p -u
|
||||
<replaceable>N</replaceable></userinput></screen>
|
||||
</informalexample> to set polled-mode for <literal>lpt<replaceable>N</replaceable></literal>.</para>
|
||||
</listitem>
|
||||
|
||||
</itemizedlist> You could put these commands in your
|
||||
|
@ -7202,10 +7208,9 @@
|
|||
use <ulink
|
||||
URL="http://www.freebsd.org/cgi/man.cgi?lptest">lptest</ulink>. Type:
|
||||
<informalexample>
|
||||
<screen><command>lptest >
|
||||
/dev/lpt<replaceable>N</replaceable></command></screen>
|
||||
</informalexample> where <emphasis
|
||||
remap=it>N</emphasis> is the number of the
|
||||
<screen><userinput>lptest >
|
||||
/dev/lpt<replaceable>N</replaceable></userinput></screen>
|
||||
</informalexample> where <replaceable>N</replaceable> is the number of the
|
||||
parallel port, starting from zero.
|
||||
</para>
|
||||
</listitem>
|
||||
|
@ -7215,8 +7220,8 @@
|
|||
other printer language, then send a small
|
||||
program to the printer. Type
|
||||
<informalexample>
|
||||
<screen><command>cat >
|
||||
/dev/lpt<replaceable>N</replaceable></command></screen>
|
||||
<screen><userinput>cat >
|
||||
/dev/lpt<replaceable>N</replaceable></userinput></screen>
|
||||
</informalexample> Then, line by line, type the
|
||||
program <emphasis>carefully</emphasis> as you
|
||||
cannot edit a line once you have pressed RETURN
|
||||
|
@ -7229,11 +7234,10 @@
|
|||
<para> Alternatively, you can put the program in a
|
||||
file and type
|
||||
<informalexample>
|
||||
<screen><command>cat
|
||||
<screen><userinput>cat
|
||||
<replaceable>file</replaceable> >
|
||||
/dev/lpt<replaceable>N</replaceable></command></screen>
|
||||
</informalexample> where <emphasis
|
||||
remap=it>file</emphasis> is the name of the
|
||||
/dev/lpt<replaceable>N</replaceable></userinput></screen>
|
||||
</informalexample> where <replaceable>file</replaceable> is the name of the
|
||||
file containing the program you want to send to
|
||||
the printer.</para>
|
||||
</listitem>
|
||||
|
@ -7273,13 +7277,11 @@
|
|||
Add the following entry:
|
||||
<informalexample>
|
||||
<screen><literal>printer:dv=/dev/<replaceable>port</replaceable>:br#<replaceable>bps-rate</replaceable>:pa=<replaceable>parity</replaceable></literal></screen>
|
||||
</informalexample> where <emphasis
|
||||
remap=it>port</emphasis> is the device entry for the
|
||||
</informalexample> where <replaceable>port</replaceable> is the device entry for the
|
||||
serial port (<literal>ttyd0</literal>,
|
||||
<literal>ttyd1</literal>, etc.), <emphasis
|
||||
remap=it>bps-rate</emphasis> is the bits-per-second
|
||||
rate at which the printer communicates, and <emphasis
|
||||
remap=it>parity</emphasis> is the parity required by
|
||||
<literal>ttyd1</literal>, etc.), <replaceable>bps-rate</replaceable> is the bits-per-second
|
||||
rate at which the printer communicates, and
|
||||
<replaceable>parity</replaceable> is the parity required by
|
||||
the printer (either <literal>even</literal>, <literal>odd</literal>, <literal>none</literal>, or <literal>zero</literal>).
|
||||
</para>
|
||||
|
||||
|
@ -7335,12 +7337,11 @@
|
|||
<para> Alternatively, you can put the program in a
|
||||
file and type
|
||||
<informalexample>
|
||||
<screen><emphasis
|
||||
remap=tt>~><replaceable>file</replaceable></emphasis></screen>
|
||||
</informalexample> where <emphasis
|
||||
remap=it>file</emphasis> is the name of the
|
||||
file containing the program. After <ulink
|
||||
URL="http://www.freebsd.org/cgi/man.cgi?tip">tip</ulink> sends the file, press any required end-of-file key.</para>
|
||||
<screen><userinput>~><replaceable>file</replaceable></userinput></screen>
|
||||
</informalexample> where <replaceable>file</replaceable> is the name of the
|
||||
file containing the program. After
|
||||
<citerefentry>
|
||||
<refentrytitle>tip</refentrytitle></citerefentry> sends the file, press any required end-of-file key.</para>
|
||||
</listitem>
|
||||
|
||||
</itemizedlist>
|
||||
|
@ -7562,8 +7563,8 @@
|
|||
<para>It is also customary to make the directory with a name
|
||||
that is identical to the name of the printer, as shown below:
|
||||
<informalexample>
|
||||
<screen><command>mkdir
|
||||
/var/spool/<replaceable>printer-name</replaceable></command></screen>
|
||||
<screen><userinput>mkdir
|
||||
/var/spool/<replaceable>printer-name</replaceable></userinput></screen>
|
||||
</informalexample> However, if you have a lot of printers on
|
||||
your network, you might want to put the spooling directories
|
||||
under a single directory that you reserve just for printing
|
||||
|
@ -7861,8 +7862,8 @@
|
|||
|
||||
<para> Type:
|
||||
<informalexample>
|
||||
<screen><command>lptest 20 5 | lpr
|
||||
-P<replaceable>printer-name</replaceable></command></screen>
|
||||
<screen><userinput>lptest 20 5 | lpr
|
||||
-P<replaceable>printer-name</replaceable></userinput></screen>
|
||||
</informalexample> where <emphasis
|
||||
remap=it>printer-name</emphasis> is a the name of a printer
|
||||
(or an alias) specified in <filename>/etc/printcap</filename>.
|
||||
|
@ -8255,8 +8256,8 @@
|
|||
|
||||
<para>To print files, type
|
||||
<informalexample>
|
||||
<screen><emphasis remap=tt>lpr
|
||||
<replaceable>filename...</replaceable></emphasis></screen>
|
||||
<screen><userinput>lpr
|
||||
<replaceable>filename...</replaceable></userinput></screen>
|
||||
</informalexample> This prints each of the listed files to the
|
||||
default printer. If you list no files, <ulink
|
||||
URL="http://www.freebsd.org/cgi/man.cgi?lpr">lpr</ulink> reads
|
||||
|
@ -8266,8 +8267,8 @@
|
|||
<screen>lpr /etc/host.conf /etc/hosts.equiv</screen>
|
||||
</informalexample> To select a specific printer, type
|
||||
<informalexample>
|
||||
<screen><command>lpr -P <replaceable>printer-name</replaceable>
|
||||
<replaceable>filename...</replaceable></command></screen>
|
||||
<screen><userinput>lpr -P <replaceable>printer-name</replaceable>
|
||||
<replaceable>filename...</replaceable></userinput></screen>
|
||||
</informalexample> This example prints a long listing of the
|
||||
current directory to the printer named <hostid>rattan</hostid>:
|
||||
<informalexample>
|
||||
|
@ -8380,8 +8381,8 @@
|
|||
URL="http://www.freebsd.org/cgi/man.cgi?lpq">lpq</ulink> to find
|
||||
the job number. Then type
|
||||
<informalexample>
|
||||
<screen><emphasis remap=tt>lprm
|
||||
<replaceable>job-number</replaceable></emphasis></screen>
|
||||
<screen><userinput>lprm
|
||||
<replaceable>job-number</replaceable></userinput></screen>
|
||||
</informalexample> To remove the job from a specific printer, add
|
||||
the <option>-P</option> option. The following command removes job
|
||||
number 10 from the queue for the printer <hostid>bamboo</hostid>:
|
||||
|
@ -31684,7 +31685,6 @@
|
|||
<row><entry><filename>libXt.so.3</filename>
|
||||
</entry><entry>oldlibs
|
||||
</entry></row>
|
||||
<row><entry></row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
|
@ -31705,7 +31705,6 @@
|
|||
<row><entry>shlibs </entry><entry>diska2 </entry></row>
|
||||
<row><entry>oldlibs </entry><entry>diskx6 </entry></row>
|
||||
<row><entry>xf_lib </entry><entry>diskx9 </entry></row>
|
||||
<row><entry></row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
|
|
|
@ -1932,14 +1932,14 @@
|
|||
command. Use of the <emphasis remap=tt><emphasis
|
||||
remap=bf>man</emphasis></emphasis> command is simple:
|
||||
<informalexample>
|
||||
<screen><emphasis remap=bf>man</emphasis> <emphasis
|
||||
remap=it>command</emphasis></screen>
|
||||
</informalexample> where <emphasis remap=it>command</emphasis> is
|
||||
<screen>
|
||||
<userinput>man <replaceable>command</replaceable></userinput>
|
||||
</screen>
|
||||
</informalexample> where <replaceable>command</replaceable> is
|
||||
the name of the command you wish to learn about. For example, to
|
||||
learn more about <emphasis remap=tt><emphasis
|
||||
remap=bf>ls</emphasis></emphasis> command type:
|
||||
learn more about <command>ls</command> command type:
|
||||
<informalexample>
|
||||
<screen>% <emphasis remap=bf>man ls</emphasis></screen>
|
||||
<screen>% <userinput>man ls</userinput></screen>
|
||||
</informalexample>
|
||||
</para>
|
||||
|
||||
|
@ -1987,7 +1987,7 @@
|
|||
remap=bf>man</emphasis></emphasis> command which one you want by
|
||||
specifying the section:
|
||||
<informalexample>
|
||||
<screen>% <emphasis remap=bf>man 1 chmod</emphasis></screen>
|
||||
<screen>% <userinput>man 1 chmod</userinput></screen>
|
||||
</informalexample> which will display the manual page for the user
|
||||
command <emphasis remap=tt><emphasis
|
||||
remap=bf>chmod</emphasis></emphasis>. References to a
|
||||
|
@ -2004,7 +2004,7 @@
|
|||
command <emphasis>descriptions</emphasis> by using the <emphasis
|
||||
remap=tt><option>-k</option></emphasis> switch:
|
||||
<informalexample>
|
||||
<screen>% <command>man -k mail</command></screen>
|
||||
<screen>% <userinput>man -k mail</userinput></screen>
|
||||
</informalexample> With this command you will be presented with a
|
||||
list of commands that have the keyword <quote>mail</quote> in their descriptions.
|
||||
This is actually functionally equivalent to using the <emphasis
|
||||
|
@ -2015,10 +2015,10 @@
|
|||
<filename>/usr/bin</filename> but do not even have the faintest idea
|
||||
what most of them actually do? Simply do a
|
||||
<informalexample>
|
||||
<screen>% <command>cd /usr/bin; man -f *</command></screen>
|
||||
<screen>% <userinput>cd /usr/bin; man -f *</userinput></screen>
|
||||
</informalexample> or
|
||||
<informalexample>
|
||||
<screen>% <command>cd /usr/bin; whatis *</command></screen>
|
||||
<screen>% <userinput>cd /usr/bin; whatis *</userinput></screen>
|
||||
</informalexample> which does the same thing.</para>
|
||||
|
||||
</sect1>
|
||||
|
@ -2036,7 +2036,7 @@
|
|||
|
||||
<para>To use the <citerefentry><refentrytitle>info</refentrytitle><manvolnum>1</manvolnum></citerefentry> command, simply type:
|
||||
<informalexample>
|
||||
<screen>% <emphasis remap=bf>info</emphasis></screen>
|
||||
<screen>% <userinput>info</userinput></screen>
|
||||
</informalexample> For a brief introduction, type <emphasis
|
||||
remap=tt><emphasis remap=bf>h</emphasis></emphasis>. For a quick
|
||||
command reference, type <emphasis remap=tt><emphasis
|
||||
|
@ -5951,13 +5951,18 @@
|
|||
<title>Altering the IPFW rules</title>
|
||||
|
||||
<para>The syntax for this form of the command is:
|
||||
<informalexample>
|
||||
<screen>ipfw [-N] <emphasis>command</emphasis>
|
||||
[<emphasis>index</emphasis>] <emphasis>action</emphasis>
|
||||
[log] <emphasis>protocol</emphasis>
|
||||
<emphasis>addresses</emphasis>
|
||||
[<emphasis>options</emphasis>]</screen>
|
||||
</informalexample>
|
||||
<cmdsynopsis>
|
||||
<command>ipfw</command>
|
||||
<arg>-N</arg>
|
||||
<arg choice="plain">command</arg>
|
||||
<arg>index</arg>
|
||||
<arg choice="plain">action</arg>
|
||||
<arg>log</arg>
|
||||
<arg choice="plain">protocol</arg>
|
||||
<arg choice="plain">addresses</arg>
|
||||
<arg>options</arg>
|
||||
</command>
|
||||
</cmdsynopsis>
|
||||
</para>
|
||||
|
||||
<para>There is one valid flag when using this form of the
|
||||
|
@ -6246,9 +6251,13 @@
|
|||
<title>Listing the IPFW rules</title>
|
||||
|
||||
<para>The syntax for this form of the command is:
|
||||
<informalexample>
|
||||
<screen>ipfw [-atN] l</screen>
|
||||
</informalexample>
|
||||
<cmdsynopsis>
|
||||
<command>ipfw</command>
|
||||
<arg>-a</arg>
|
||||
<arg>-t</arg>
|
||||
<arg>-N</arg>
|
||||
<arg choice="plain">l</arg></command>
|
||||
</cmdsynopsis>
|
||||
</para>
|
||||
|
||||
<para>There are three valid flags when using this form of the
|
||||
|
@ -6305,9 +6314,11 @@
|
|||
<title>Clearing the IPFW packet counters</title>
|
||||
|
||||
<para>The syntax for clearing one or more packet counters is:
|
||||
<informalexample>
|
||||
<screen>ipfw zero [index]</screen>
|
||||
</informalexample>
|
||||
<cmdsynopsis>
|
||||
<command>ipfw</command>
|
||||
<arg choice="plain">zero</arg>
|
||||
<arg>index</arg></command>
|
||||
</cmdsynopsis>
|
||||
</para>
|
||||
|
||||
<para>When used without an <emphasis>index</emphasis> argument,
|
||||
|
@ -6930,9 +6941,9 @@
|
|||
<para>To find out if the kernel you are currently using supports a
|
||||
serial interface, type
|
||||
<informalexample>
|
||||
<screen><command>dmesg | grep
|
||||
sio</command><emphasis remap=it>N</emphasis></screen>
|
||||
</informalexample> where <emphasis remap=it>N</emphasis> is the
|
||||
<screen><userinput>dmesg | grep
|
||||
sio<replaceable>N</replaceable></userinput></screen>
|
||||
</informalexample> where <replaceable>N</replaceable> is the
|
||||
number of the serial port, starting from zero. If you see
|
||||
output similar to the following
|
||||
<informalexample>
|
||||
|
@ -6943,9 +6954,9 @@
|
|||
<para>To find out if the kernel supports a parallel interface,
|
||||
type
|
||||
<informalexample>
|
||||
<screen><command>dmesg | grep
|
||||
lpt</command><emphasis remap=it>N</emphasis></screen>
|
||||
</informalexample> where <emphasis remap=it>N</emphasis> is the
|
||||
<screen><userinput>dmesg | grep
|
||||
lpt<replaceable>N</replaceable></userinput></screen>
|
||||
</informalexample> where <replaceable>N</replaceable> is the
|
||||
number of the parallel port, starting from zero. If you see
|
||||
output similar to the following
|
||||
<informalexample>
|
||||
|
@ -6996,10 +7007,9 @@
|
|||
<listitem>
|
||||
<para>Type
|
||||
<informalexample>
|
||||
<screen><command> ./MAKEDEV</command>
|
||||
<emphasis remap=it>port</emphasis></screen>
|
||||
</informalexample> where <emphasis
|
||||
remap=it>port</emphasis> is the device entry for the
|
||||
<screen><userinput> ./MAKEDEV
|
||||
<replaceable>port</replaceable></userinput></screen>
|
||||
</informalexample> where <replaceable>port</replaceable> is the device entry for the
|
||||
port you want to make. Use <literal>lpt0</literal> for the first parallel port,
|
||||
<literal>lpt1</literal> for the second, and
|
||||
so on; use <literal>ttyd0</literal> for the
|
||||
|
@ -7011,8 +7021,7 @@
|
|||
<listitem>
|
||||
<para>Type
|
||||
<informalexample>
|
||||
<screen><command>ls -l</command> <emphasis
|
||||
remap=it>port</emphasis></screen>
|
||||
<screen><userinput>ls -l <replaceable>port</replaceable></userinput></screen>
|
||||
</informalexample> to make sure the device entry got
|
||||
created.</para>
|
||||
</listitem>
|
||||
|
@ -7077,11 +7086,10 @@
|
|||
<para>If you want interrupt-driven mode, add the
|
||||
<literal>irq</literal> specifier:
|
||||
<informalexample>
|
||||
<screen><emphasis remap=tt>device lpt0 at isa?
|
||||
<screen>device lpt0 at isa?
|
||||
port? tty irq <replaceable>N</replaceable>
|
||||
vector lptintr</emphasis></screen>
|
||||
</informalexample> where <emphasis
|
||||
remap=it>N</emphasis> is the IRQ number for your
|
||||
vector lptintr</screen>
|
||||
</informalexample> where <replaceable>N</replaceable> is the IRQ number for your
|
||||
computer's parallel port.
|
||||
</para>
|
||||
</listitem>
|
||||
|
@ -7090,8 +7098,8 @@
|
|||
<para>If you want polled mode, do not add the
|
||||
<literal>irq</literal> specifier:
|
||||
<informalexample>
|
||||
<screen><emphasis remap=tt>device lpt0 at isa?
|
||||
port? tty vector lptintr</emphasis>
|
||||
<screen>device lpt0 at isa?
|
||||
port? tty vector lptintr
|
||||
</screen>
|
||||
</informalexample>
|
||||
</para>
|
||||
|
@ -7119,21 +7127,19 @@
|
|||
<listitem>
|
||||
<para>Type
|
||||
<informalexample>
|
||||
<screen><command>lptcontrol -i -u
|
||||
<replaceable>N</replaceable></command></screen>
|
||||
<screen><userinput>lptcontrol -i -u
|
||||
<replaceable>N</replaceable></userinput></screen>
|
||||
</informalexample> to set interrupt-driven mode for
|
||||
<emphasis
|
||||
remap=tt>lpt<replaceable>N</replaceable></emphasis>.
|
||||
<literal>lpt<replaceable>N</replaceable></literal>.
|
||||
</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>Type
|
||||
<informalexample>
|
||||
<screen><command>lptcontrol -p -u
|
||||
<replaceable>N</replaceable></command></screen>
|
||||
</informalexample> to set polled-mode for <emphasis
|
||||
remap=tt>lpt<replaceable>N</replaceable></emphasis>.</para>
|
||||
<screen><userinput>lptcontrol -p -u
|
||||
<replaceable>N</replaceable></userinput></screen>
|
||||
</informalexample> to set polled-mode for <literal>lpt<replaceable>N</replaceable></literal>.</para>
|
||||
</listitem>
|
||||
|
||||
</itemizedlist> You could put these commands in your
|
||||
|
@ -7202,10 +7208,9 @@
|
|||
use <ulink
|
||||
URL="http://www.freebsd.org/cgi/man.cgi?lptest">lptest</ulink>. Type:
|
||||
<informalexample>
|
||||
<screen><command>lptest >
|
||||
/dev/lpt<replaceable>N</replaceable></command></screen>
|
||||
</informalexample> where <emphasis
|
||||
remap=it>N</emphasis> is the number of the
|
||||
<screen><userinput>lptest >
|
||||
/dev/lpt<replaceable>N</replaceable></userinput></screen>
|
||||
</informalexample> where <replaceable>N</replaceable> is the number of the
|
||||
parallel port, starting from zero.
|
||||
</para>
|
||||
</listitem>
|
||||
|
@ -7215,8 +7220,8 @@
|
|||
other printer language, then send a small
|
||||
program to the printer. Type
|
||||
<informalexample>
|
||||
<screen><command>cat >
|
||||
/dev/lpt<replaceable>N</replaceable></command></screen>
|
||||
<screen><userinput>cat >
|
||||
/dev/lpt<replaceable>N</replaceable></userinput></screen>
|
||||
</informalexample> Then, line by line, type the
|
||||
program <emphasis>carefully</emphasis> as you
|
||||
cannot edit a line once you have pressed RETURN
|
||||
|
@ -7229,11 +7234,10 @@
|
|||
<para> Alternatively, you can put the program in a
|
||||
file and type
|
||||
<informalexample>
|
||||
<screen><command>cat
|
||||
<screen><userinput>cat
|
||||
<replaceable>file</replaceable> >
|
||||
/dev/lpt<replaceable>N</replaceable></command></screen>
|
||||
</informalexample> where <emphasis
|
||||
remap=it>file</emphasis> is the name of the
|
||||
/dev/lpt<replaceable>N</replaceable></userinput></screen>
|
||||
</informalexample> where <replaceable>file</replaceable> is the name of the
|
||||
file containing the program you want to send to
|
||||
the printer.</para>
|
||||
</listitem>
|
||||
|
@ -7273,13 +7277,11 @@
|
|||
Add the following entry:
|
||||
<informalexample>
|
||||
<screen><literal>printer:dv=/dev/<replaceable>port</replaceable>:br#<replaceable>bps-rate</replaceable>:pa=<replaceable>parity</replaceable></literal></screen>
|
||||
</informalexample> where <emphasis
|
||||
remap=it>port</emphasis> is the device entry for the
|
||||
</informalexample> where <replaceable>port</replaceable> is the device entry for the
|
||||
serial port (<literal>ttyd0</literal>,
|
||||
<literal>ttyd1</literal>, etc.), <emphasis
|
||||
remap=it>bps-rate</emphasis> is the bits-per-second
|
||||
rate at which the printer communicates, and <emphasis
|
||||
remap=it>parity</emphasis> is the parity required by
|
||||
<literal>ttyd1</literal>, etc.), <replaceable>bps-rate</replaceable> is the bits-per-second
|
||||
rate at which the printer communicates, and
|
||||
<replaceable>parity</replaceable> is the parity required by
|
||||
the printer (either <literal>even</literal>, <literal>odd</literal>, <literal>none</literal>, or <literal>zero</literal>).
|
||||
</para>
|
||||
|
||||
|
@ -7335,12 +7337,11 @@
|
|||
<para> Alternatively, you can put the program in a
|
||||
file and type
|
||||
<informalexample>
|
||||
<screen><emphasis
|
||||
remap=tt>~><replaceable>file</replaceable></emphasis></screen>
|
||||
</informalexample> where <emphasis
|
||||
remap=it>file</emphasis> is the name of the
|
||||
file containing the program. After <ulink
|
||||
URL="http://www.freebsd.org/cgi/man.cgi?tip">tip</ulink> sends the file, press any required end-of-file key.</para>
|
||||
<screen><userinput>~><replaceable>file</replaceable></userinput></screen>
|
||||
</informalexample> where <replaceable>file</replaceable> is the name of the
|
||||
file containing the program. After
|
||||
<citerefentry>
|
||||
<refentrytitle>tip</refentrytitle></citerefentry> sends the file, press any required end-of-file key.</para>
|
||||
</listitem>
|
||||
|
||||
</itemizedlist>
|
||||
|
@ -7562,8 +7563,8 @@
|
|||
<para>It is also customary to make the directory with a name
|
||||
that is identical to the name of the printer, as shown below:
|
||||
<informalexample>
|
||||
<screen><command>mkdir
|
||||
/var/spool/<replaceable>printer-name</replaceable></command></screen>
|
||||
<screen><userinput>mkdir
|
||||
/var/spool/<replaceable>printer-name</replaceable></userinput></screen>
|
||||
</informalexample> However, if you have a lot of printers on
|
||||
your network, you might want to put the spooling directories
|
||||
under a single directory that you reserve just for printing
|
||||
|
@ -7861,8 +7862,8 @@
|
|||
|
||||
<para> Type:
|
||||
<informalexample>
|
||||
<screen><command>lptest 20 5 | lpr
|
||||
-P<replaceable>printer-name</replaceable></command></screen>
|
||||
<screen><userinput>lptest 20 5 | lpr
|
||||
-P<replaceable>printer-name</replaceable></userinput></screen>
|
||||
</informalexample> where <emphasis
|
||||
remap=it>printer-name</emphasis> is a the name of a printer
|
||||
(or an alias) specified in <filename>/etc/printcap</filename>.
|
||||
|
@ -8255,8 +8256,8 @@
|
|||
|
||||
<para>To print files, type
|
||||
<informalexample>
|
||||
<screen><emphasis remap=tt>lpr
|
||||
<replaceable>filename...</replaceable></emphasis></screen>
|
||||
<screen><userinput>lpr
|
||||
<replaceable>filename...</replaceable></userinput></screen>
|
||||
</informalexample> This prints each of the listed files to the
|
||||
default printer. If you list no files, <ulink
|
||||
URL="http://www.freebsd.org/cgi/man.cgi?lpr">lpr</ulink> reads
|
||||
|
@ -8266,8 +8267,8 @@
|
|||
<screen>lpr /etc/host.conf /etc/hosts.equiv</screen>
|
||||
</informalexample> To select a specific printer, type
|
||||
<informalexample>
|
||||
<screen><command>lpr -P <replaceable>printer-name</replaceable>
|
||||
<replaceable>filename...</replaceable></command></screen>
|
||||
<screen><userinput>lpr -P <replaceable>printer-name</replaceable>
|
||||
<replaceable>filename...</replaceable></userinput></screen>
|
||||
</informalexample> This example prints a long listing of the
|
||||
current directory to the printer named <hostid>rattan</hostid>:
|
||||
<informalexample>
|
||||
|
@ -8380,8 +8381,8 @@
|
|||
URL="http://www.freebsd.org/cgi/man.cgi?lpq">lpq</ulink> to find
|
||||
the job number. Then type
|
||||
<informalexample>
|
||||
<screen><emphasis remap=tt>lprm
|
||||
<replaceable>job-number</replaceable></emphasis></screen>
|
||||
<screen><userinput>lprm
|
||||
<replaceable>job-number</replaceable></userinput></screen>
|
||||
</informalexample> To remove the job from a specific printer, add
|
||||
the <option>-P</option> option. The following command removes job
|
||||
number 10 from the queue for the printer <hostid>bamboo</hostid>:
|
||||
|
@ -31684,7 +31685,6 @@
|
|||
<row><entry><filename>libXt.so.3</filename>
|
||||
</entry><entry>oldlibs
|
||||
</entry></row>
|
||||
<row><entry></row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
|
@ -31705,7 +31705,6 @@
|
|||
<row><entry>shlibs </entry><entry>diska2 </entry></row>
|
||||
<row><entry>oldlibs </entry><entry>diskx6 </entry></row>
|
||||
<row><entry>xf_lib </entry><entry>diskx9 </entry></row>
|
||||
<row><entry></row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
|
|
|
@ -1932,14 +1932,14 @@
|
|||
command. Use of the <emphasis remap=tt><emphasis
|
||||
remap=bf>man</emphasis></emphasis> command is simple:
|
||||
<informalexample>
|
||||
<screen><emphasis remap=bf>man</emphasis> <emphasis
|
||||
remap=it>command</emphasis></screen>
|
||||
</informalexample> where <emphasis remap=it>command</emphasis> is
|
||||
<screen>
|
||||
<userinput>man <replaceable>command</replaceable></userinput>
|
||||
</screen>
|
||||
</informalexample> where <replaceable>command</replaceable> is
|
||||
the name of the command you wish to learn about. For example, to
|
||||
learn more about <emphasis remap=tt><emphasis
|
||||
remap=bf>ls</emphasis></emphasis> command type:
|
||||
learn more about <command>ls</command> command type:
|
||||
<informalexample>
|
||||
<screen>% <emphasis remap=bf>man ls</emphasis></screen>
|
||||
<screen>% <userinput>man ls</userinput></screen>
|
||||
</informalexample>
|
||||
</para>
|
||||
|
||||
|
@ -1987,7 +1987,7 @@
|
|||
remap=bf>man</emphasis></emphasis> command which one you want by
|
||||
specifying the section:
|
||||
<informalexample>
|
||||
<screen>% <emphasis remap=bf>man 1 chmod</emphasis></screen>
|
||||
<screen>% <userinput>man 1 chmod</userinput></screen>
|
||||
</informalexample> which will display the manual page for the user
|
||||
command <emphasis remap=tt><emphasis
|
||||
remap=bf>chmod</emphasis></emphasis>. References to a
|
||||
|
@ -2004,7 +2004,7 @@
|
|||
command <emphasis>descriptions</emphasis> by using the <emphasis
|
||||
remap=tt><option>-k</option></emphasis> switch:
|
||||
<informalexample>
|
||||
<screen>% <command>man -k mail</command></screen>
|
||||
<screen>% <userinput>man -k mail</userinput></screen>
|
||||
</informalexample> With this command you will be presented with a
|
||||
list of commands that have the keyword <quote>mail</quote> in their descriptions.
|
||||
This is actually functionally equivalent to using the <emphasis
|
||||
|
@ -2015,10 +2015,10 @@
|
|||
<filename>/usr/bin</filename> but do not even have the faintest idea
|
||||
what most of them actually do? Simply do a
|
||||
<informalexample>
|
||||
<screen>% <command>cd /usr/bin; man -f *</command></screen>
|
||||
<screen>% <userinput>cd /usr/bin; man -f *</userinput></screen>
|
||||
</informalexample> or
|
||||
<informalexample>
|
||||
<screen>% <command>cd /usr/bin; whatis *</command></screen>
|
||||
<screen>% <userinput>cd /usr/bin; whatis *</userinput></screen>
|
||||
</informalexample> which does the same thing.</para>
|
||||
|
||||
</sect1>
|
||||
|
@ -2036,7 +2036,7 @@
|
|||
|
||||
<para>To use the <citerefentry><refentrytitle>info</refentrytitle><manvolnum>1</manvolnum></citerefentry> command, simply type:
|
||||
<informalexample>
|
||||
<screen>% <emphasis remap=bf>info</emphasis></screen>
|
||||
<screen>% <userinput>info</userinput></screen>
|
||||
</informalexample> For a brief introduction, type <emphasis
|
||||
remap=tt><emphasis remap=bf>h</emphasis></emphasis>. For a quick
|
||||
command reference, type <emphasis remap=tt><emphasis
|
||||
|
@ -5951,13 +5951,18 @@
|
|||
<title>Altering the IPFW rules</title>
|
||||
|
||||
<para>The syntax for this form of the command is:
|
||||
<informalexample>
|
||||
<screen>ipfw [-N] <emphasis>command</emphasis>
|
||||
[<emphasis>index</emphasis>] <emphasis>action</emphasis>
|
||||
[log] <emphasis>protocol</emphasis>
|
||||
<emphasis>addresses</emphasis>
|
||||
[<emphasis>options</emphasis>]</screen>
|
||||
</informalexample>
|
||||
<cmdsynopsis>
|
||||
<command>ipfw</command>
|
||||
<arg>-N</arg>
|
||||
<arg choice="plain">command</arg>
|
||||
<arg>index</arg>
|
||||
<arg choice="plain">action</arg>
|
||||
<arg>log</arg>
|
||||
<arg choice="plain">protocol</arg>
|
||||
<arg choice="plain">addresses</arg>
|
||||
<arg>options</arg>
|
||||
</command>
|
||||
</cmdsynopsis>
|
||||
</para>
|
||||
|
||||
<para>There is one valid flag when using this form of the
|
||||
|
@ -6246,9 +6251,13 @@
|
|||
<title>Listing the IPFW rules</title>
|
||||
|
||||
<para>The syntax for this form of the command is:
|
||||
<informalexample>
|
||||
<screen>ipfw [-atN] l</screen>
|
||||
</informalexample>
|
||||
<cmdsynopsis>
|
||||
<command>ipfw</command>
|
||||
<arg>-a</arg>
|
||||
<arg>-t</arg>
|
||||
<arg>-N</arg>
|
||||
<arg choice="plain">l</arg></command>
|
||||
</cmdsynopsis>
|
||||
</para>
|
||||
|
||||
<para>There are three valid flags when using this form of the
|
||||
|
@ -6305,9 +6314,11 @@
|
|||
<title>Clearing the IPFW packet counters</title>
|
||||
|
||||
<para>The syntax for clearing one or more packet counters is:
|
||||
<informalexample>
|
||||
<screen>ipfw zero [index]</screen>
|
||||
</informalexample>
|
||||
<cmdsynopsis>
|
||||
<command>ipfw</command>
|
||||
<arg choice="plain">zero</arg>
|
||||
<arg>index</arg></command>
|
||||
</cmdsynopsis>
|
||||
</para>
|
||||
|
||||
<para>When used without an <emphasis>index</emphasis> argument,
|
||||
|
@ -6930,9 +6941,9 @@
|
|||
<para>To find out if the kernel you are currently using supports a
|
||||
serial interface, type
|
||||
<informalexample>
|
||||
<screen><command>dmesg | grep
|
||||
sio</command><emphasis remap=it>N</emphasis></screen>
|
||||
</informalexample> where <emphasis remap=it>N</emphasis> is the
|
||||
<screen><userinput>dmesg | grep
|
||||
sio<replaceable>N</replaceable></userinput></screen>
|
||||
</informalexample> where <replaceable>N</replaceable> is the
|
||||
number of the serial port, starting from zero. If you see
|
||||
output similar to the following
|
||||
<informalexample>
|
||||
|
@ -6943,9 +6954,9 @@
|
|||
<para>To find out if the kernel supports a parallel interface,
|
||||
type
|
||||
<informalexample>
|
||||
<screen><command>dmesg | grep
|
||||
lpt</command><emphasis remap=it>N</emphasis></screen>
|
||||
</informalexample> where <emphasis remap=it>N</emphasis> is the
|
||||
<screen><userinput>dmesg | grep
|
||||
lpt<replaceable>N</replaceable></userinput></screen>
|
||||
</informalexample> where <replaceable>N</replaceable> is the
|
||||
number of the parallel port, starting from zero. If you see
|
||||
output similar to the following
|
||||
<informalexample>
|
||||
|
@ -6996,10 +7007,9 @@
|
|||
<listitem>
|
||||
<para>Type
|
||||
<informalexample>
|
||||
<screen><command> ./MAKEDEV</command>
|
||||
<emphasis remap=it>port</emphasis></screen>
|
||||
</informalexample> where <emphasis
|
||||
remap=it>port</emphasis> is the device entry for the
|
||||
<screen><userinput> ./MAKEDEV
|
||||
<replaceable>port</replaceable></userinput></screen>
|
||||
</informalexample> where <replaceable>port</replaceable> is the device entry for the
|
||||
port you want to make. Use <literal>lpt0</literal> for the first parallel port,
|
||||
<literal>lpt1</literal> for the second, and
|
||||
so on; use <literal>ttyd0</literal> for the
|
||||
|
@ -7011,8 +7021,7 @@
|
|||
<listitem>
|
||||
<para>Type
|
||||
<informalexample>
|
||||
<screen><command>ls -l</command> <emphasis
|
||||
remap=it>port</emphasis></screen>
|
||||
<screen><userinput>ls -l <replaceable>port</replaceable></userinput></screen>
|
||||
</informalexample> to make sure the device entry got
|
||||
created.</para>
|
||||
</listitem>
|
||||
|
@ -7077,11 +7086,10 @@
|
|||
<para>If you want interrupt-driven mode, add the
|
||||
<literal>irq</literal> specifier:
|
||||
<informalexample>
|
||||
<screen><emphasis remap=tt>device lpt0 at isa?
|
||||
<screen>device lpt0 at isa?
|
||||
port? tty irq <replaceable>N</replaceable>
|
||||
vector lptintr</emphasis></screen>
|
||||
</informalexample> where <emphasis
|
||||
remap=it>N</emphasis> is the IRQ number for your
|
||||
vector lptintr</screen>
|
||||
</informalexample> where <replaceable>N</replaceable> is the IRQ number for your
|
||||
computer's parallel port.
|
||||
</para>
|
||||
</listitem>
|
||||
|
@ -7090,8 +7098,8 @@
|
|||
<para>If you want polled mode, do not add the
|
||||
<literal>irq</literal> specifier:
|
||||
<informalexample>
|
||||
<screen><emphasis remap=tt>device lpt0 at isa?
|
||||
port? tty vector lptintr</emphasis>
|
||||
<screen>device lpt0 at isa?
|
||||
port? tty vector lptintr
|
||||
</screen>
|
||||
</informalexample>
|
||||
</para>
|
||||
|
@ -7119,21 +7127,19 @@
|
|||
<listitem>
|
||||
<para>Type
|
||||
<informalexample>
|
||||
<screen><command>lptcontrol -i -u
|
||||
<replaceable>N</replaceable></command></screen>
|
||||
<screen><userinput>lptcontrol -i -u
|
||||
<replaceable>N</replaceable></userinput></screen>
|
||||
</informalexample> to set interrupt-driven mode for
|
||||
<emphasis
|
||||
remap=tt>lpt<replaceable>N</replaceable></emphasis>.
|
||||
<literal>lpt<replaceable>N</replaceable></literal>.
|
||||
</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>Type
|
||||
<informalexample>
|
||||
<screen><command>lptcontrol -p -u
|
||||
<replaceable>N</replaceable></command></screen>
|
||||
</informalexample> to set polled-mode for <emphasis
|
||||
remap=tt>lpt<replaceable>N</replaceable></emphasis>.</para>
|
||||
<screen><userinput>lptcontrol -p -u
|
||||
<replaceable>N</replaceable></userinput></screen>
|
||||
</informalexample> to set polled-mode for <literal>lpt<replaceable>N</replaceable></literal>.</para>
|
||||
</listitem>
|
||||
|
||||
</itemizedlist> You could put these commands in your
|
||||
|
@ -7202,10 +7208,9 @@
|
|||
use <ulink
|
||||
URL="http://www.freebsd.org/cgi/man.cgi?lptest">lptest</ulink>. Type:
|
||||
<informalexample>
|
||||
<screen><command>lptest >
|
||||
/dev/lpt<replaceable>N</replaceable></command></screen>
|
||||
</informalexample> where <emphasis
|
||||
remap=it>N</emphasis> is the number of the
|
||||
<screen><userinput>lptest >
|
||||
/dev/lpt<replaceable>N</replaceable></userinput></screen>
|
||||
</informalexample> where <replaceable>N</replaceable> is the number of the
|
||||
parallel port, starting from zero.
|
||||
</para>
|
||||
</listitem>
|
||||
|
@ -7215,8 +7220,8 @@
|
|||
other printer language, then send a small
|
||||
program to the printer. Type
|
||||
<informalexample>
|
||||
<screen><command>cat >
|
||||
/dev/lpt<replaceable>N</replaceable></command></screen>
|
||||
<screen><userinput>cat >
|
||||
/dev/lpt<replaceable>N</replaceable></userinput></screen>
|
||||
</informalexample> Then, line by line, type the
|
||||
program <emphasis>carefully</emphasis> as you
|
||||
cannot edit a line once you have pressed RETURN
|
||||
|
@ -7229,11 +7234,10 @@
|
|||
<para> Alternatively, you can put the program in a
|
||||
file and type
|
||||
<informalexample>
|
||||
<screen><command>cat
|
||||
<screen><userinput>cat
|
||||
<replaceable>file</replaceable> >
|
||||
/dev/lpt<replaceable>N</replaceable></command></screen>
|
||||
</informalexample> where <emphasis
|
||||
remap=it>file</emphasis> is the name of the
|
||||
/dev/lpt<replaceable>N</replaceable></userinput></screen>
|
||||
</informalexample> where <replaceable>file</replaceable> is the name of the
|
||||
file containing the program you want to send to
|
||||
the printer.</para>
|
||||
</listitem>
|
||||
|
@ -7273,13 +7277,11 @@
|
|||
Add the following entry:
|
||||
<informalexample>
|
||||
<screen><literal>printer:dv=/dev/<replaceable>port</replaceable>:br#<replaceable>bps-rate</replaceable>:pa=<replaceable>parity</replaceable></literal></screen>
|
||||
</informalexample> where <emphasis
|
||||
remap=it>port</emphasis> is the device entry for the
|
||||
</informalexample> where <replaceable>port</replaceable> is the device entry for the
|
||||
serial port (<literal>ttyd0</literal>,
|
||||
<literal>ttyd1</literal>, etc.), <emphasis
|
||||
remap=it>bps-rate</emphasis> is the bits-per-second
|
||||
rate at which the printer communicates, and <emphasis
|
||||
remap=it>parity</emphasis> is the parity required by
|
||||
<literal>ttyd1</literal>, etc.), <replaceable>bps-rate</replaceable> is the bits-per-second
|
||||
rate at which the printer communicates, and
|
||||
<replaceable>parity</replaceable> is the parity required by
|
||||
the printer (either <literal>even</literal>, <literal>odd</literal>, <literal>none</literal>, or <literal>zero</literal>).
|
||||
</para>
|
||||
|
||||
|
@ -7335,12 +7337,11 @@
|
|||
<para> Alternatively, you can put the program in a
|
||||
file and type
|
||||
<informalexample>
|
||||
<screen><emphasis
|
||||
remap=tt>~><replaceable>file</replaceable></emphasis></screen>
|
||||
</informalexample> where <emphasis
|
||||
remap=it>file</emphasis> is the name of the
|
||||
file containing the program. After <ulink
|
||||
URL="http://www.freebsd.org/cgi/man.cgi?tip">tip</ulink> sends the file, press any required end-of-file key.</para>
|
||||
<screen><userinput>~><replaceable>file</replaceable></userinput></screen>
|
||||
</informalexample> where <replaceable>file</replaceable> is the name of the
|
||||
file containing the program. After
|
||||
<citerefentry>
|
||||
<refentrytitle>tip</refentrytitle></citerefentry> sends the file, press any required end-of-file key.</para>
|
||||
</listitem>
|
||||
|
||||
</itemizedlist>
|
||||
|
@ -7562,8 +7563,8 @@
|
|||
<para>It is also customary to make the directory with a name
|
||||
that is identical to the name of the printer, as shown below:
|
||||
<informalexample>
|
||||
<screen><command>mkdir
|
||||
/var/spool/<replaceable>printer-name</replaceable></command></screen>
|
||||
<screen><userinput>mkdir
|
||||
/var/spool/<replaceable>printer-name</replaceable></userinput></screen>
|
||||
</informalexample> However, if you have a lot of printers on
|
||||
your network, you might want to put the spooling directories
|
||||
under a single directory that you reserve just for printing
|
||||
|
@ -7861,8 +7862,8 @@
|
|||
|
||||
<para> Type:
|
||||
<informalexample>
|
||||
<screen><command>lptest 20 5 | lpr
|
||||
-P<replaceable>printer-name</replaceable></command></screen>
|
||||
<screen><userinput>lptest 20 5 | lpr
|
||||
-P<replaceable>printer-name</replaceable></userinput></screen>
|
||||
</informalexample> where <emphasis
|
||||
remap=it>printer-name</emphasis> is a the name of a printer
|
||||
(or an alias) specified in <filename>/etc/printcap</filename>.
|
||||
|
@ -8255,8 +8256,8 @@
|
|||
|
||||
<para>To print files, type
|
||||
<informalexample>
|
||||
<screen><emphasis remap=tt>lpr
|
||||
<replaceable>filename...</replaceable></emphasis></screen>
|
||||
<screen><userinput>lpr
|
||||
<replaceable>filename...</replaceable></userinput></screen>
|
||||
</informalexample> This prints each of the listed files to the
|
||||
default printer. If you list no files, <ulink
|
||||
URL="http://www.freebsd.org/cgi/man.cgi?lpr">lpr</ulink> reads
|
||||
|
@ -8266,8 +8267,8 @@
|
|||
<screen>lpr /etc/host.conf /etc/hosts.equiv</screen>
|
||||
</informalexample> To select a specific printer, type
|
||||
<informalexample>
|
||||
<screen><command>lpr -P <replaceable>printer-name</replaceable>
|
||||
<replaceable>filename...</replaceable></command></screen>
|
||||
<screen><userinput>lpr -P <replaceable>printer-name</replaceable>
|
||||
<replaceable>filename...</replaceable></userinput></screen>
|
||||
</informalexample> This example prints a long listing of the
|
||||
current directory to the printer named <hostid>rattan</hostid>:
|
||||
<informalexample>
|
||||
|
@ -8380,8 +8381,8 @@
|
|||
URL="http://www.freebsd.org/cgi/man.cgi?lpq">lpq</ulink> to find
|
||||
the job number. Then type
|
||||
<informalexample>
|
||||
<screen><emphasis remap=tt>lprm
|
||||
<replaceable>job-number</replaceable></emphasis></screen>
|
||||
<screen><userinput>lprm
|
||||
<replaceable>job-number</replaceable></userinput></screen>
|
||||
</informalexample> To remove the job from a specific printer, add
|
||||
the <option>-P</option> option. The following command removes job
|
||||
number 10 from the queue for the printer <hostid>bamboo</hostid>:
|
||||
|
@ -31684,7 +31685,6 @@
|
|||
<row><entry><filename>libXt.so.3</filename>
|
||||
</entry><entry>oldlibs
|
||||
</entry></row>
|
||||
<row><entry></row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
|
@ -31705,7 +31705,6 @@
|
|||
<row><entry>shlibs </entry><entry>diska2 </entry></row>
|
||||
<row><entry>oldlibs </entry><entry>diskx6 </entry></row>
|
||||
<row><entry>xf_lib </entry><entry>diskx9 </entry></row>
|
||||
<row><entry></row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
|
|
Loading…
Reference in a new issue