0
点赞
收藏
分享

微信扫一扫

linux回炉第十七天

echo $BASHPID

pstree
pstree -p
pstree -T
pstree -u
pstree -H 1070

ps
ps aux
ps -ef
ps auxf
ps axo user,pid,cmd,ni
ps aux k %cpu
ps aux k %mem
ps aux k -%cpu | head

prtstat 808

pgrep -f ping
pgrep ping
pgrep -u root
pgrep -l bash
pgrep -t pts/0 -a

pidof ping
cat /proc/`pidof ping`/status

uptime
w

mpstat
mpstat 1
mpstat 1 3

top
C
M
P
t
1
top -b

htop

free
free -m
free -k
free -b
free -g
free -h
free -l
free -h -s5

pmap 808

vmstat

iostat
iostat 1

iotop

iftop
iftop -n

nload

nethogs

dstat
dstat --top-io --top-cpu 1 6

glances

lsof
lsof -i:80
lsof /etc/hosts
lsof -f `pidof tail`

pwdx 808

trap -l
kill -l
kill -2 `pidof ping`
jobs
kill %1
kill 38022
kill -9 38008
pkill -u wang
pkill -9 -u wang
killall ping
pkill '^p'
fuser -k 22/tcp

jobs
bg
fg 2

at 15:15
at -l
at -d 1

crontab
crontab -l
crontab -e
crontab -e -u wang
crontab -u wang -l
crontab -r
cat /etc/crontab
* * * * *
分时日月周

举报

相关推荐

0 条评论