进程与端口

端口

查看端口

$ netstat -antlp | more

查看pid对应的进程文件路径:

$ ls -l /proc/$PID/exe
# 或
$ file /proc/$PID/exe

查看连接

$ netstat -antlp | grep ESTABLISHED
$ netstat -antlp | grep LISTEN

进程

查看进程

$ ps aux | grep $PID | grep -v grep

隐藏进程查看

查看相关文件和路径

Last updated

Was this helpful?