Unix Command Notebook 22 September 2010
Posted by Tyo in Uncategorized.trackback
A note for command that usually use on Unix:
1.infinite loop for monitoring space
while true; do df -g /mount1 ; sleep 10; done
2.Find file which modified more than 2 days ago
find /mount1 -name ‘*.123′ -mtime +2
3.Checking oracle connected user (showing pid,memory used, argument)
ps -ef -o pid,vms,args | grep oracle
4.Find file and delete it
find /mount1 -name ‘*.123′ -mtime +3 -exec rm {} \;
Komentar»
No comments yet — be the first.