首页 > Linux操作系统 > Linux操作系统 > 实用的Linux命令
//每2秒检查1次,检查10次
root@cnpphttp50:~# top -d 2 -n 10
//显示现在登陆着的用户,load:5/10/15 mins
root@cnpphttp50:~# w
11:29:08 up 231 days, 10:44, 1 user, load average: 0.00, 0.00, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
fzou pts/0 10.5.46.180 11:25 0.00s 0.07s 0.00s sshd: fzou [priv]
//显示用户的组
-bash-3.2$ groups mqm
mqm : mqm asinstall bconsole GR-MQM-ADM
[ora10gas@rtdkm1jcx01 ~]$ groups ora10gas
ora10gas : asinstall bconsole mqm
//查看打开端口的进程
sudo lsof -i :
//check are there any network issue at that time
netstat -i
//Force changed blocks to disk, update the super block. Makes sure we avoid data corruption
Flush Buffers to Disk:
gpssh -f /home/gpadmin/gpconfigs/hostfile
sync
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26477398/viewspace-2123197/ ,如需转载,请注明出处,否则将追究法律责任。