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

Re: fast way to delete a directory recursively



Patrick Hsieh wrote:
Hello list,

I have some directories which are usually more than 10GB in size.
If I want to delete them immediately, is there any fast way except for
rm -rf <dir>?



an almost instantaneous workaround could be

mv <directory> <directory>.dead
rm -rf <directory>.dead & # note the ampersand

this will not free the space immediately, but <directory>
will disappear from the file system very quickly.

pietro.



--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: