[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Can't remove or change a directory



At 1:22 PM -0600 11/15/07, Mikkel L. Ellertson wrote:
 ...
>...Did you know that
>to remove a directory, you should use rmdir, and not rm? There is
>also "rm -d <directory>", but that is limited to root, and should be
>used with care.

What is the benefit of using rmdir rather than rm -rf, other than having to
empty the directory first?  (I use two steps, ll dir followed by editing
the command to be rm -rf.)

I don't see any -d option to rm in man rm, info rm, or rm --help (all tests
done as root!).
-- 
____________________________________________________________________
TonyN.:'                       <mailto:tonynelson georgeanelson com>
      '                              <http://www.georgeanelson.com/>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]