Files
linux-wiki/content/deepin折腾笔记/第五章/5.7.md
2021-10-21 14:57:58 +08:00

9 lines
367 B
Markdown
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 5.7 进程相关命令
pgrep XXX #查询进程ID
ps -ef |grep XXX #显示所有进程信息,连同命令行
ps -aux |grep XXX #列出目前所有的正在内存当中的程序
可以用 | 管道和 more 连接起来分页查看ps -aux |more
sudo netstat -tulpn |grep :21 #查询端口
pkill XXX #杀掉
killall XXX #全杀