请解释进程查看、信号发送等命令。
查看
ps aux / ps -ef 看进程与父进程;pgrep -af name 按名找;pstree -p 看进程树。top/htop 看 CPU/内存实时;pidstat -p PID 1 看单进程;/proc/PID/{status,cmdline,fd} 看详情。管理
kill -15 优雅终止,-9 强杀(最后手段);nice/renice 调优先级;nohup ... &/setsid 后台运行。systemctl status/start/stop/restart 管理服务;journalctl -u 看日志。排查
题目与答案就在本页;收藏、批注和错题重练在应用内