While you are deleting some xxx.trc -c-dump files or some other files which fill up your disk you may hit ksh: /usr/bin/rm: arg list too long error message,

# cd /u01/app/oracle/admin/DB_NAME/bdump

# rm -rf *.trc

ksh: /usr/bin/rm: arg list too long

So you can use below syntax to can delete those files:

# find . -name “DIR_PATH/*.trc” -type f -exec rm -f {} \;

or:

# find DIR_PATH -name “*.trc” -type f -exec rm -f {} \;

PS: In our case DIR_PATH=/u01/app/oracle/admin/DB_NAME/bdump

Advertisements