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

Popular posts from this blog

upgrade database oracle 10g to oracle 11g

Installing DBMS_JAVA package in Oracle and calling UTL_DBWS web services through Oracle database

Starting background process GTX4 and GLOBAL_TXN_PROCESSES