- PID (进程ID)
- PPID (父进程ID)
- 进程状态 (运行、睡眠、停止等)
- 进程优先级
- 资源使用情况
ps aux
top
pstree
ps -fp PID
command
command &
nohup command &
kill PID
kill -9 PID
killall process_name
kill -STOP PID
kill -CONT PID
kill -HUP PID
top -p PID
free -h
vmstat 1
iotop
strace command
ltrace command
lsof -p PID
nice -n 10 command
renice 10 -p PID
chrt -f 99 command
chrt -p PID
vim /etc/systemd/system/myservice.service
systemctl start myservice
systemctl enable myservice
systemctl status myservice
systemctl restart myservice
systemctl reload myservice
systemctl stop myservice
kill -SIGTERM PID
kill -l
command1 | command2
command > file.txt
command >> file.txt
command 2> error.log
ulimit -n 65535
ulimit -u 2048
cpulimit -p PID -l 50
taskset -pc 0,1 PID
numactl --cpunodebind=0 command