首页 > Linux操作系统 > Linux操作系统 > hp-ux下的一些常用命令
今天总结了一下hp-ux平台下一些dba常用命令.
-- 用dd检验存储的io能力
#sar -d 2 5
#dd if=/dev/rdsk/c31t0d0 of=/dev/null
#ioscan -fnkCdisk
prompt -- kill all oracle background processes when you can't shutdown the db
ps -ef|grep "ora_"|grep -v grep|grep $ORACLE_SID|awk '{ print $2 }'|xargs kill -9
alias show_ora_process="script"
prompt -- search the file that contains the string 'x'
find . -print|xargs grep -i x
prompt -- hu-unix的命令
prompt -- glance/top/sar -u/sar -w/sar -b/vmstat
list recently touched files :
ls -alt|head
list recently changed files :
ls -alc|head
display file size in 512k :
du -s *|sort -n | tail
-- locate files that contain certain strings :
find . -print|xargs grep -i v$session
-- find recently created files :
find . -mtime -1 -print
-- find large files on a server :
find . -size +100000 -print
-- Disk management :
df -k/bdf
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/6906/viewspace-21720/,如需转载,请注明出处,否则将追究法律责任。