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

54 lines
2.9 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.6 Deleting files and directories</TITLE>
</HEAD>
<BODY>
<meta name="description" value="3.3.6 Deleting files and directories">
<meta name="keywords" value="gs">
<meta name="resource-type" value="document">
<meta name="distribution" value="global">
<P>
<BR> <HR><A NAME=tex2html3180 HREF="node113.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html3178 HREF="node106.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html3172 HREF="node111.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html3182 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html3183 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME=tex2html3181 HREF="node113.html">3.3.7 Looking at files</A>
<B>Up:</B> <A NAME=tex2html3179 HREF="node106.html">3.3 First Steps into </A>
<B> Previous:</B> <A NAME=tex2html3173 HREF="node111.html">3.3.5 Moving files</A>
<BR> <HR> <P>
<H2><A NAME=SECTION00536000000000000000>3.3.6 Deleting files and directories</A></H2>
<P>
<A NAME=2292>&#160;</A>
<A NAME=2293>&#160;</A>
<A NAME=2361>&#160;</A>
You now have an ugly rhyme developing with the use of the <tt>ls</tt> command.
To delete a file, use the <tt>rm</tt> command. (``<tt>rm</tt>'' stands for
``remove'').
<P>
<P><TT> /home/larry/foo# <em>rm bells sells</em> <BR>
/home/larry/foo# <em>ls -F</em> <BR>
shells <BR>
/home/larry/foo#
<P></TT>
<P>
We're left with nothing but shells, but we won't complain. Note that
<tt>rm</tt> by default won't prompt you before deleting a file---so be
careful.
<P>
<A NAME=2303>&#160;</A>
<A NAME=2304>&#160;</A>
<A NAME=2362>&#160;</A>
A related command to <tt>rm</tt> is <tt>rmdir</tt>. This command deletes
a directory, but only if the directory is empty. If the directory
contains any files or subdirectories, <tt>rmdir</tt> will complain.
<P>
<BR> <HR><A NAME=tex2html3180 HREF="node113.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html3178 HREF="node106.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html3172 HREF="node111.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html3182 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html3183 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME=tex2html3181 HREF="node113.html">3.3.7 Looking at files</A>
<B>Up:</B> <A NAME=tex2html3179 HREF="node106.html">3.3 First Steps into </A>
<B> Previous:</B> <A NAME=tex2html3173 HREF="node111.html">3.3.5 Moving files</A>
<BR> <HR> <P>
<BR> <HR>
<P><ADDRESS>
<I>Matt Welsh <BR>
mdw@sunsite.unc.edu</I>
</ADDRESS>
</BODY>