work with huge folders
remove files
ionice -c 3 nice -n 19 bash -c '
find /mnt/inode-lab/inode-test \
-maxdepth 1 -type f -print0 |
head -z -n 10000 |
xargs -0 -r -n 1000 rm --
'
remove files
ionice -c 3 nice -n 19 bash -c '
find /mnt/inode-lab/inode-test \
-maxdepth 1 -type f -print0 |
xargs -0 -r -n 1000 bash -c '"'"'
rm -- "$@" || exit
sleep 0.2
'"'"' _
'
show files