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)


Popular posts from this blog

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

ORA-01153: an incompatible media recovery is active standby database oracle

ORA-16191: Primary log shipping client not logged on standby