Re: removing directory

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

 



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


_______________________________________________ Blinux-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/blinux-list

[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]