🔹 Join the OracleApps88 Telegram Group - Stay up to date with the latest on Oracle EBS R12 and Oracle Cloud/Fusion Applications. 📌 Telegram Group : https://t.me/OracleApps88

💡 Facing issues copying code/scripts or viewing posts? We're here to help!
📬 Contact on Telegram : https://t.me/apps88
📱 Telegram/WhatsApp: +91 905 957 4321
📧 Email Support: OracleApp88@Yahoo.com

Tuesday, August 30, 2011

Useful UNIX Commands

1). To find the top 10 larger files in the Directory,
$ls -lrt | awk '{print $5,$9}' | sort -nr head | xargs ls -lrt

2) To find the access and Modification details of a file
$istat
*This command is available for AIX only

3).To remove file which are older then say 7 days
$find . -mtime +7 -exec rm {} \;

4). Locate Files that Contain Certain Strings

$ find . -print | xargs grep -i v\$dba_objects

5) To Delete top 10 huge files in directory,

Use,

$du -sk | sort -nr | head | awk '{print $2}' | xargs rm -r

1 comment:

Anonymous said...

mtime +60 -delete

Post a Comment

If you are facing any issues while copying the Code/Script or any issues with Posts, Please send a mail to OracleApp88@Yahoo.com or message me at @apps88 or +91 905 957 4321 in telegram.
Best Blogger TipsGet Flower Effect