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

Re: removing directory



The rmdir command removes a directory, but the
directory must be empty. However, if you want
to force deletion of everything in a directory,
you can use the command

rf -r directoryname

The -r means recursive. Warning: you need to be
very careful with this command! If you make a
mistake you can easily delete a whole wrong
directory tree. Never use rf -r * because that
is asking for trouble, if you are at the wrong
place in the directory heierarchy you could
delete parts of the system or important data.

-- Doug




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