Linux Error Argument list too long
If you get this error by deleting log files in any directory :- /bin/rm: Argument list too long
then run the following command :-
find . -name '*' | xargs rm
find . -name 'spam-*' | xargs rm
find . -name '*.trc' | xargs rm
find . -name 'core*' | xargs rm -rf
find /rpt01/dbs/log/ -name '*.log' -mtime +4 -exec rm {} \; (This will delete 4 days old log files)
Comments
Post a Comment