kenttanl / kenttanl.github.io

个人博客,http://kentt.top/
https://kenttanl.github.io/
MIT License
0 stars 0 forks source link

Linux Commands #5

Open kenttanl opened 3 years ago

kenttanl commented 3 years ago

仅记录简单的命令,详细请自行搜索

扫描指定网段下的所有IP

Starting Nmap 6.40 ( http://nmap.org ) at 2020-09-25 20:02 PDT Nmap scan report for 10.1.xx.xxx Host is up (0.0022s latency). Nmap scan report for 10.1.xx.xxx Host is up (0.0025s latency). Nmap scan report for 10.1.xx.xxx


#### 查看开放的端口

- netstat: 显示服务器的网络状态
```shell
# 显示打开的 TCP 端口
$ netstat -ntpl
kenttanl commented 3 years ago

top

源自:8. top linux下的任务管理器

$ top [-c]
top - 09:14:56 up 264 days, 20:56,  1 user,  load average: 0.02, 0.04, 0.00
Tasks:  87 total,   1 running,  86 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.0%us,  0.2%sy,  0.0%ni, 99.7%id,  0.0%wa,  0.0%hi,  0.0%si,  0.2%st
Mem:    377672k total,   322332k used,    55340k free,    32592k buffers
Swap:   397308k total,    67192k used,   330116k free,    71900k cached
PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
1   root      20   0  2856  656  388 S  0.0  0.2   0:49.40 init
2   root      20   0     0    0    0 S  0.0  0.0   0:00.00 kthreadd
3   root      20   0     0    0    0 S  0.0  0.0   7:15.20 ksoftirqd/0
4   root      RT   0     0    0    0 S  0.0  0.0   0:00.00 migration/0

含义

交互操作指令

一些常用的 top命令操作指令