📄 psall
字号:
#! /bin/csh -f# script to produce a list of all processes, with usernames# in column 1, process ids in column 2, and executable# names anywhere else on the line# for some OSes, I know how to do itswitch ($OSTYPE)case "linux": ps -aux exitcase "hp-ux": ps -ef exitendsw# try to figure out how to get a list of all processes# try /bin/ps -ef, which I at one point thought worked on# all systems, and is normal BSD methodset out = `/bin/ps -ef | head -1`if ( "${out[1]}" == "USER" && "${out[2]}" == "PID" ) then /bin/ps -ef exitendif# try ps -aux, which works on (all?) System Vset out = `ps -aux | head -1`if ( "${out[1]}" == "USER" && "${out[2]}" == "PID" ) then ps -aux exitendif# give upecho "error: I couldn't figure out how to get a process list."exit 2
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -