I have an ubuntu linux system. I have a directory which has a large amount of files. I can use
rm -rf $NAME to delete it all. However that can use a lot of disk I/O and cause load to increase, because of the disk I/O. Even if I use
ionice -c 3 it can still cause a lot of disk I/O and hence load.
Is there a
slowrmrf command which will be like
rm -rf, but will go "slowly" (FSVO slow) and delete all the files, but will look at the load of the system and go pause sometimes to let the load go back down?