天天看点

linux命令

nl

#显示行号 默认右对齐
nl  /etc/passwd

#显示行号  左对齐
nl -n ln /etc/passwd           

ls -alh

# 人性化阅读 -h 会自动转K M G
ls -alh           

 ps

# 该进程内有多少个线程
# nlwp含义是number of light-weight process
ps –o nlwp 10000           
# 排除idel 
# 获得running线程数量
ps -eLo pid ,stat | grep 10000 | grep running | wc -l
           
上一篇: linux命令
下一篇: linux命令