Linux 进阶指令/文件记录

此处记录后续学到的一些指令和工具.

基础

vnstat 网络流量监控

每天自动更新, 自带统计

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Database updated: 2022-11-27 04:15:00

eth0 since 2022-10-26

rx: 43.72 GiB tx: 828.52 GiB total: 872.24 GiB

monthly
rx | tx | total | avg. rate
------------------------+-------------+-------------+---------------
2022-11 43.72 GiB | 828.52 GiB | 872.24 GiB | 3.31 Mbit/s
------------------------+-------------+-------------+---------------
estimated 50.10 GiB | 949.52 GiB | 999.63 GiB |

daily
rx | tx | total | avg. rate
------------------------+-------------+-------------+---------------
yesterday 8.41 GiB | 264.23 GiB | 272.64 GiB | 27.11 Mbit/s
today 405.98 MiB | 8.53 GiB | 8.93 GiB | 5.01 Mbit/s
------------------------+-------------+-------------+---------------
estimated 2.24 GiB | 48.17 GiB | 50.41 GiB |

dmidecode

使用 dmidecode 查看当前内存的相关信息,如运行频率和型号等,仅适用于物理机。

1
$ dmidecode --type 17

执行结果

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Getting SMBIOS data from sysfs.
SMBIOS 3.0.0 present.

Handle 0x005B, DMI type 17, 40 bytes
Memory Device
Array Handle: 0x0056
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 72 bits
Size: 16 GB
Form Factor: DIMM
Set: None
Locator: DIMM_B1
Bank Locator: NODE 1
Type: DDR3
Type Detail: Synchronous
Speed: 1067 MT/s
Manufacturer: Hynix Semiconductor
Serial Number: 23A8E73D
Asset Tag: DIMM_B1_AssetTag
Part Number: ********-**
Rank: 4
Configured Memory Speed: 1333 MT/s
Minimum Voltage: Unknown
Maximum Voltage: Unknown
Configured Voltage: Unknown

Linux 进阶指令/文件记录
https://swai.top/share-15.html
作者
ShallowAi
发布于
2020年11月16日
许可协议