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

49 lines
2.7 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.3.4 Copying files</TITLE>
</HEAD>
<BODY>
<meta name="description" value="3.3.4 Copying files">
<meta name="keywords" value="gs">
<meta name="resource-type" value="document">
<meta name="distribution" value="global">
<P>
<BR> <HR><A NAME=tex2html3156 HREF="node111.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html3154 HREF="node106.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html3148 HREF="node109.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html3158 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html3159 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME=tex2html3157 HREF="node111.html">3.3.5 Moving files</A>
<B>Up:</B> <A NAME=tex2html3155 HREF="node106.html">3.3 First Steps into </A>
<B> Previous:</B> <A NAME=tex2html3149 HREF="node109.html">3.3.3 Creating new directories</A>
<BR> <HR> <P>
<H2><A NAME=SECTION00534000000000000000>3.3.4 Copying files</A></H2>
<P>
<A NAME=2264>&#160;</A>
<A NAME=2265>&#160;</A>
<A NAME=2359>&#160;</A>
Copying files is done with the command <tt>cp</tt>:
<P>
<P><TT> /home/larry/foo# <em>cp /etc/termcap .</em> <BR>
/home/larry/foo# <em>cp /etc/shells .</em> <BR>
/home/larry/foo# <em>ls --F</em> <BR>
shells termcap <BR>
/home/larry/foo# <em>cp shells bells</em> <BR>
/home/larry/foo# <em>ls --F</em> <BR>
bells shells termcap <BR>
/home/larry/foo#
<P></TT>
<P>
The <tt>cp</tt> command copies the files listed on the command line to the
file or directory given as the last argument. Notice how we use the
directory ``<tt>.</tt>'' to refer to the current directory.
<P>
<BR> <HR><A NAME=tex2html3156 HREF="node111.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html3154 HREF="node106.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html3148 HREF="node109.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html3158 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html3159 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME=tex2html3157 HREF="node111.html">3.3.5 Moving files</A>
<B>Up:</B> <A NAME=tex2html3155 HREF="node106.html">3.3 First Steps into </A>
<B> Previous:</B> <A NAME=tex2html3149 HREF="node109.html">3.3.3 Creating new directories</A>
<BR> <HR> <P>
<BR> <HR>
<P><ADDRESS>
<I>Matt Welsh <BR>
mdw@sunsite.unc.edu</I>
</ADDRESS>
</BODY>