rm –rf Argument list too long

You may get this type of error while deleting large number of files.

# cd /tmp
# rm -f sess*
/bin/rm: Argument list too long
You can use the below commands to delete the files in such case.
# find /tmp -name “sess*” -delete
Spread the love

Leave a Reply

Your email address will not be published. Required fields are marked *