Showing posts with label OS Level Issues. Show all posts
Showing posts with label OS Level Issues. Show all posts

Monday, June 25, 2012

COMMAND - DELETING FILES AT OS LEVEL


DELETING FILES AT OS LEVEL


$ df -h .
$ find . -name "*.trc" -mtime +7 -exec ls -ltr {} \;
$ find . -name "*.trc" -mtime +7 -exec rm {} \;


df -h .
$ find . -name "*.trm" -mtime +7 -exec ls -ltr {} \;
$ find . -name "*.trm" -mtime +7 -exec rm {} \;


$  df -h .
$ find . -name "*.gz" -mtime +7 -exec ls {} \;
$ find . -name "*.gz" -mtime +7 -exec rm -rf {} \;


NOTE
find . -name "*.trc" -mtime +7 -exec gzip  {} \;



"Hope for the best, prepare for the worst"
-Dharmendra

Saturday, July 30, 2011

Linux Error: 24: Too many open files

Issue could be losf count by applmgr is more than ulimit -n


lsof -u applmgr | wc -l >  ulimit -n

need to change hard and soft in /etc/security/limits.conf and restart server

Ref : 577291.1


UR's Key Run ;-)