linux网络命令
1.env——查看环境变量资源
可以查看到当前用户环境配置

2.ifconfig
可以查看网卡数量,IP地址、mac地址

3. ps -ef 查看所有进程

4. ss -t -a 显示所有tcp连接

5.ss -s 显示sockets摘要
列出当前的established, closed, orphaned and waiting TCP sockets

6.ss -o state established '( dport = :ssh or sport = :ssh )'
显示所有状态为Established的ssh连接

7.ps -ef——查看所有进程

8. iptables -L 查看防火墙配置

9. netstat -lntp 查看正在监听的端口

10.netstat -anput 查看所有tcp\udp已经建立的连接

11. ps aux 查看系统中所有的进程

查看到可疑进程
12. lsof -p 3502 列出某个 PID 进程打开的文件

13.kill -9 3502 杀死可疑进程
杀死3502 可疑进程

浙公网安备 33010602011771号