I want to find and delete first 10 largest files. Below is the command to find out 10 largest files.du -a * | sort -n -r | head -n 10
Find And Delete
command line;files;rm
Assuming the GNU implementation of all utilities below:find /some/folder -type f -printf '%s\t%p\0' | \    sort -rnz | \    head -10 -z | \    cut -f2- -z | \    xargs -0 rm -f