Files
oldlinux-files/docs/Install-Guide/install-guide-2.2.2/node105.html
2024-02-19 00:23:35 -05:00

53 lines
3.1 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3O//DTD W3 HTML 2.0//EN">
<!Converted with LaTeX2HTML 95.1 (Fri Jan 20 1995) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds >
<HEAD>
<TITLE>3.2.10 Referring to home directories</TITLE>
</HEAD>
<BODY>
<meta name="description" value="3.2.10 Referring to home directories">
<meta name="keywords" value="gs">
<meta name="resource-type" value="document">
<meta name="distribution" value="global">
<P>
<BR> <HR><A NAME=tex2html3088 HREF="node106.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html3086 HREF="node95.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html3082 HREF="node104.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html3090 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html3091 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME=tex2html3089 HREF="node106.html">3.3 First Steps into </A>
<B>Up:</B> <A NAME=tex2html3087 HREF="node95.html">3.2 Basic UNIX Concepts</A>
<B> Previous:</B> <A NAME=tex2html3083 HREF="node104.html">3.2.9 The current working </A>
<BR> <HR> <P>
<H2><A NAME=SECTION005210000000000000000>3.2.10 Referring to home directories</A></H2>
<P>
<A NAME=2146>&#160;</A>
<A NAME=2147>&#160;</A>
<A NAME=2148>&#160;</A>
Under both <tt>tcsh</tt> and <tt>bash</tt>,<A NAME=tex2html387 HREF="footnode.html#2139"><IMG ALIGN=BOTTOM ALT="gif" SRC="foot_motif.gif"></A>
your home directory can be referred
to using the tilde character (``<tt>&#126;</tt>''). For example, the command
<P><TT> /home/larry# <em>more &#126;/papers/history-final</em>
<P></TT>
is equivalent to
<P><TT> /home/larry# <em>more /home/larry/papers/history-final</em>
<P></TT>
The ``<tt>&#126;</tt>'' character is simply replaced with the name of your
home directory by the shell.
<P>
In addition, you can specify other user's home directories with the
tilde as well. The pathname ``<tt>&#126;karl/letters</tt>'' translates to
``<tt>/home/karl/letters</tt>'' by the shell (if <tt>/home/karl</tt> is
karl's home directory). The use of the tilde is simply a shortcut;
there is no directory named ``<tt>&#126;</tt>''---it's just syntactic sugar
provided by the shell.
<P>
<A NAME=2068>&#160;</A>
<P>
<BR> <HR><A NAME=tex2html3088 HREF="node106.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html3086 HREF="node95.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html3082 HREF="node104.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html3090 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html3091 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME=tex2html3089 HREF="node106.html">3.3 First Steps into </A>
<B>Up:</B> <A NAME=tex2html3087 HREF="node95.html">3.2 Basic UNIX Concepts</A>
<B> Previous:</B> <A NAME=tex2html3083 HREF="node104.html">3.2.9 The current working </A>
<BR> <HR> <P>
<BR> <HR>
<P><ADDRESS>
<I>Matt Welsh <BR>
mdw@sunsite.unc.edu</I>
</ADDRESS>
</BODY>