#this removes first 10 files in a folder ls -U | head -10 will output a list of files #then you pips those to xargs rm which removes them ls -U | head -10 | xargs rm