Skip to content

Commit 2f5cf43

Browse files
authored
doc: update less.md & lscpu.md & ntpdate.md & tcpreplay.md (#542)
1 parent 65665e8 commit 2f5cf43

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

command/less.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ less(选项)(参数)
2424
-s:将连续多个空行压缩成一行显示;
2525
-S:在单行显示较长的内容,而不换行显示;
2626
-x<数字>:将TAB字符显示为指定个数的空格字符。
27+
-r:能够显示设置的颜色。
2728
```
2829

2930
### 参数

command/lscpu.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,17 @@ L2 cache: 256K
7171
L3 cache: 8192K
7272
NUMA node0 CPU(s): 0-3
7373
```
74-
74+
```shell
75+
# 查看cpu编号对应的核心号码,区分是大核还是小核。
76+
[root@localhost ~]# lscpu -e
77+
CPU NODE SOCKET CORE L1d:L1i:L2:L3 ONLINE MAXMHZ MINMHZ
78+
0 0 0 0 0:0:0:0 是 3600.0000 800.0000
79+
1 0 0 1 1:1:1:0 是 3600.0000 800.0000
80+
2 0 0 2 2:2:2:0 是 3600.0000 800.0000
81+
3 0 0 3 3:3:3:0 是 3600.0000 800.0000
82+
4 0 0 0 0:0:0:0 是 3600.0000 800.0000
83+
5 0 0 1 1:1:1:0 是 3600.0000 800.0000
84+
6 0 0 2 2:2:2:0 是 3600.0000 800.0000
85+
7 0 0 3 3:3:3:0 是 3600.0000 800.0000
86+
```
7587

command/ntpdate.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,6 @@ ntpdate [ -b] [ -d] [ -s] [ -u] [ -aKeyid] [ -eAuthenticationDelay] [ -kKeyFile]
3737
-s # 指定日志操作 syslog 设施的使用,而不是使用标准输出。 当运行 ntpdate 命令和 cron命令时,它是很有用的。
3838
-tTimeOut # 指定等待响应的时间。给定 TimeOut 的值四舍五入为 0.2 秒的倍数。缺省值是 1 秒。
3939
-u # 指定使用无特权的端口发送数据包。 当在一个对特权端口的输入流量进行阻拦的防火墙后是很有益的, 并希望在防火墙之外和主机同步。防火墙是一个系统或者计算机,它控制从外网对专用网的访问。
40+
-q # 仅供查询,不设置时间。
4041
```
4142

command/tcpreplay.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ tcpreplay
2424
-k <mac> 重写主网卡发送报文的源MAC地址。
2525
-K <mac> 重写从网卡发送报文的源MAC地址。
2626
-l <loop> 指定循环的次数。
27+
--loopdelay-ms=2000 每次循环间隔2000毫秒。
2728
-L <limit> 指定最大的发包数量。可以在确认连接的调试时使用。
2829
-m <multiple> 指定一个倍数值,就是必默认发送速率要快多少倍的速率发送报文。 加大发送的速率后,对于DUT可能意味着有更多的并发连接和连接数,特别是对于BT报文的重放, 因为连接的超时是固定的,如果速率增大的话, 留在session表中的连接数量增大,还可以通过修改连接的超时时间来达到该目的。
2930
-M 表示不发送“火星”的ip报文,man文件中的定义是 0/8、172/8、 255/8。

0 commit comments

Comments
 (0)