How to delete trc and trm in Linux system (For example)


$find /u01/app/oracle/admin/KBAZER/diag/diag/
rdbms/kbazer/KBAZER/trace KBAZER_*_*.trc
$find /u01/app/oracle/admin/KBAZER/diag/diag/
rdbms/kbazer/KBAZER/trace KBAZER_*_*.trc
$ls -latr | grep KBAZER | wc -c
$find . -name KBAZER_*_*.trc
$find . -name KBAZER_\*
$find . -name KBAZER_\*_\*.trc
$find . -name KBAZER_\*_\*.trc |wc -l
$find . -name KBAZER_\*_\*.trc -mtime +3 |wc -l           
$find . -name KBAZER_\*_\*.trc -mtime +3 -exec rm -f {} \;
$find . -name KBAZER_\*_\*.trc -mtime -3 -exec rm -f {} \;
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: