HostOnNet Blog

rm – Argument list too long

Looking for Linux Server Admin or WordPress Expert? We can help.

I found too many session files on my servers /tmp folder.
 
On trying to delete the files, i got error
 
# cd /tmp
# rm -f sess*
 
I got the error
 
/bin/rm: Argument list too long.
I don’t know why FreeBSD do not fix this, if it was MS Windows, it will get big press and Microsoft will fix it, now with Free OS, we have to use
 
find /tmp -name “sess*” -delete
 
This will delete all files start with sess.
 
I Love using FreeBSD/Linux on my servers, still silly problems like this should be fixed. If you go and ask in FreeBSD mailing list, you will get  answer, we have provided full source code, why don’t you read the source code and correct it type of answer.

Posted in Uncategorized. Bookmark the permalink.

One Response to rm – Argument list too long

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.