jump to navigation

Unix Command Notebook 22 September 2010

Posted by Tyo in Uncategorized.
add a comment

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 {} \;

Ikuti

Get every new post delivered to your Inbox.