Fix the mark-up for screen examples in the Unix Basics section
This commit is contained in:
parent
0b2a4d0ef9
commit
88e4f74c98
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=7815
2 changed files with 38 additions and 24 deletions
|
|
@ -1,7 +1,7 @@
|
|||
<!--
|
||||
The FreeBSD Documentation Project
|
||||
|
||||
$FreeBSD: doc/en_US.ISO_8859-1/books/handbook/basics/chapter.sgml,v 1.19 2000/05/19 07:35:46 murray Exp $
|
||||
$FreeBSD: doc/en_US.ISO_8859-1/books/handbook/basics/chapter.sgml,v 1.20 2000/06/08 01:56:00 jim Exp $
|
||||
-->
|
||||
|
||||
<chapter id="basics">
|
||||
|
|
@ -303,11 +303,11 @@
|
|||
csh or tcsh a command like this would set <envar>EDITOR</envar> to
|
||||
<filename>/usr/local/bin/emacs</filename>:</para>
|
||||
|
||||
<para><command>setenv EDITOR /usr/local/bin/emacs</command></para>
|
||||
<screen>&prompt.user; <userinput>setenv EDITOR /usr/local/bin/emacs</userinput></screen>
|
||||
|
||||
<para>Under Bourne shells:</para>
|
||||
|
||||
<para><command>export EDITOR="/usr/local/bin/emacs"</command></para>
|
||||
<screen>&prompt.user; <userinput>export EDITOR="/usr/local/bin/emacs"</userinput></screen>
|
||||
|
||||
<para>You can also make most shells expand the environment variable by
|
||||
placing a <literal>$</literal> character in front of it on the
|
||||
|
|
@ -419,13 +419,13 @@
|
|||
arguments. These manuals can be viewed with the man command. Use
|
||||
of the man command is simple:</para>
|
||||
|
||||
<para><command>&prompt.user; man command</command></para>
|
||||
<screen>&prompt.user; <userinput>man <replaceable>command</replaceable></userinput></screen>
|
||||
|
||||
<para><literal>command</literal> is the name of the command you
|
||||
wish to learn about. For example, to learn more about
|
||||
<command>ls</command> command type:</para>
|
||||
|
||||
<para><command>&prompt.user; man ls</command></para>
|
||||
<screen>&prompt.user; <userinput>man ls</userinput></screen>
|
||||
|
||||
<para>The online manual is divided up into numbered sections:</para>
|
||||
|
||||
|
|
@ -473,7 +473,7 @@
|
|||
case, you can tell the man command which one you want by
|
||||
specifying the section:</para>
|
||||
|
||||
<para><command>&prompt.user; man 1 chmod</command></para>
|
||||
<screen>&prompt.user; <userinput>man 1 chmod</userinput></screen>
|
||||
|
||||
<para>This will display the manual page for the user command
|
||||
<command>chmod</command>. References to a particular section of
|
||||
|
|
@ -488,7 +488,7 @@
|
|||
command descriptions by using the <option>-k</option>
|
||||
switch:</para>
|
||||
|
||||
<para><command>&prompt.user; man -k mail</command></para>
|
||||
<screen>&prompt.user; <userinput>man -k mail</userinput></screen>
|
||||
|
||||
<para>With this command you will be presented with a list of
|
||||
commands that have the keyword <quote>mail</quote> in their
|
||||
|
|
@ -497,10 +497,17 @@
|
|||
|
||||
<para>So, you are looking at all those fancy commands in
|
||||
<filename>/usr/bin</filename> but do not have the faintest idea
|
||||
what most of them actually do? Simply do a
|
||||
<command>&prompt.user; cd /usr/bin; man -f *</command> or
|
||||
<command>&prompt.user; cd /usr/bin; whatis *</command> which
|
||||
does the same thing.</para>
|
||||
what most of them actually do? Simply do:</para>
|
||||
|
||||
<screen>&prompt.user; <userinput>cd /usr/bin</userinput>
|
||||
&prompt.user; <userinput>man -f *</userinput></screen>
|
||||
|
||||
<para>or</para>
|
||||
|
||||
<screen>&prompt.user; <userinput>cd /usr/bin</userinput>
|
||||
&prompt.user; <userinput>whatis *</userinput></screen>
|
||||
|
||||
<para>which does the same thing.</para>
|
||||
</sect2>
|
||||
|
||||
<sect2 id="basics-info">
|
||||
|
|
@ -516,7 +523,7 @@
|
|||
|
||||
<para>To use the &man.info.1; command, simply type:</para>
|
||||
|
||||
<para><command>&prompt.user; info</command></para>
|
||||
<screen>&prompt.user; <userinput>info</userinput></screen>
|
||||
|
||||
<para>For a brief introduction, type <literal>h</literal>. For a
|
||||
quick command reference, type <literal>?</literal>.</para>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<!--
|
||||
The FreeBSD Documentation Project
|
||||
|
||||
$FreeBSD: doc/en_US.ISO_8859-1/books/handbook/basics/chapter.sgml,v 1.19 2000/05/19 07:35:46 murray Exp $
|
||||
$FreeBSD: doc/en_US.ISO_8859-1/books/handbook/basics/chapter.sgml,v 1.20 2000/06/08 01:56:00 jim Exp $
|
||||
-->
|
||||
|
||||
<chapter id="basics">
|
||||
|
|
@ -303,11 +303,11 @@
|
|||
csh or tcsh a command like this would set <envar>EDITOR</envar> to
|
||||
<filename>/usr/local/bin/emacs</filename>:</para>
|
||||
|
||||
<para><command>setenv EDITOR /usr/local/bin/emacs</command></para>
|
||||
<screen>&prompt.user; <userinput>setenv EDITOR /usr/local/bin/emacs</userinput></screen>
|
||||
|
||||
<para>Under Bourne shells:</para>
|
||||
|
||||
<para><command>export EDITOR="/usr/local/bin/emacs"</command></para>
|
||||
<screen>&prompt.user; <userinput>export EDITOR="/usr/local/bin/emacs"</userinput></screen>
|
||||
|
||||
<para>You can also make most shells expand the environment variable by
|
||||
placing a <literal>$</literal> character in front of it on the
|
||||
|
|
@ -419,13 +419,13 @@
|
|||
arguments. These manuals can be viewed with the man command. Use
|
||||
of the man command is simple:</para>
|
||||
|
||||
<para><command>&prompt.user; man command</command></para>
|
||||
<screen>&prompt.user; <userinput>man <replaceable>command</replaceable></userinput></screen>
|
||||
|
||||
<para><literal>command</literal> is the name of the command you
|
||||
wish to learn about. For example, to learn more about
|
||||
<command>ls</command> command type:</para>
|
||||
|
||||
<para><command>&prompt.user; man ls</command></para>
|
||||
<screen>&prompt.user; <userinput>man ls</userinput></screen>
|
||||
|
||||
<para>The online manual is divided up into numbered sections:</para>
|
||||
|
||||
|
|
@ -473,7 +473,7 @@
|
|||
case, you can tell the man command which one you want by
|
||||
specifying the section:</para>
|
||||
|
||||
<para><command>&prompt.user; man 1 chmod</command></para>
|
||||
<screen>&prompt.user; <userinput>man 1 chmod</userinput></screen>
|
||||
|
||||
<para>This will display the manual page for the user command
|
||||
<command>chmod</command>. References to a particular section of
|
||||
|
|
@ -488,7 +488,7 @@
|
|||
command descriptions by using the <option>-k</option>
|
||||
switch:</para>
|
||||
|
||||
<para><command>&prompt.user; man -k mail</command></para>
|
||||
<screen>&prompt.user; <userinput>man -k mail</userinput></screen>
|
||||
|
||||
<para>With this command you will be presented with a list of
|
||||
commands that have the keyword <quote>mail</quote> in their
|
||||
|
|
@ -497,10 +497,17 @@
|
|||
|
||||
<para>So, you are looking at all those fancy commands in
|
||||
<filename>/usr/bin</filename> but do not have the faintest idea
|
||||
what most of them actually do? Simply do a
|
||||
<command>&prompt.user; cd /usr/bin; man -f *</command> or
|
||||
<command>&prompt.user; cd /usr/bin; whatis *</command> which
|
||||
does the same thing.</para>
|
||||
what most of them actually do? Simply do:</para>
|
||||
|
||||
<screen>&prompt.user; <userinput>cd /usr/bin</userinput>
|
||||
&prompt.user; <userinput>man -f *</userinput></screen>
|
||||
|
||||
<para>or</para>
|
||||
|
||||
<screen>&prompt.user; <userinput>cd /usr/bin</userinput>
|
||||
&prompt.user; <userinput>whatis *</userinput></screen>
|
||||
|
||||
<para>which does the same thing.</para>
|
||||
</sect2>
|
||||
|
||||
<sect2 id="basics-info">
|
||||
|
|
@ -516,7 +523,7 @@
|
|||
|
||||
<para>To use the &man.info.1; command, simply type:</para>
|
||||
|
||||
<para><command>&prompt.user; info</command></para>
|
||||
<screen>&prompt.user; <userinput>info</userinput></screen>
|
||||
|
||||
<para>For a brief introduction, type <literal>h</literal>. For a
|
||||
quick command reference, type <literal>?</literal>.</para>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue