jump to navigation

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.

Tinggalkan Balasan

Please log in using one of these methods to post your comment:

WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Connecting to %s

Ikuti

Get every new post delivered to your Inbox.