ITPub博客

首页 > Linux操作系统 > Linux操作系统 > hp-ux下的一些常用命令

hp-ux下的一些常用命令

原创 Linux操作系统 作者:husthxd 时间:2005-02-07 00:00:00 0 删除 编辑

今天总结了一下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 /w/iostat
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/,如需转载,请注明出处,否则将追究法律责任。

下一篇: 新年快到了
请登录后发表评论 登录
全部评论
ITPUB数据库版块资深版主,对Oracle、PostgreSQL有深入研究。

注册时间:2007-12-28

  • 博文量
    1559
  • 访问量
    4242677