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

finding fragmentation at table level and tablespace level in Oracle and steps to remove them

Oracle Custom Procedure for defragmentation Partition tables and their associated index and move non partitioned table

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