下面数字以MB为单位。
root@ido:/# free -m
totalused free shared buff/cache available
Mem: 1970 287 1316 19 366 1638
Swap: 0 0 0
root@ido:/# cat /proc/meminfo
MemTotal: 2017532 kB #总内存的大小
MemFree: 1347508 kB #系统当前可用的空闲内存大小
MemAvailable: 1677712 kB #系统当前可用的内存大小,这包括空闲内存和缓存的内存。
Buffers: 32500 kB
Cached: 309484 kB
SwapCached: 0 kB
Active: 108648 kB
Inactive: 433624 kB
Active(anon): 1080 kB
Inactive(anon): 219252 kB
Active(file): 107568 kB
Inactive(file): 214372 kB
Unevictable: 8132 kB
Mlocked: 0 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 208420 kB
Mapped: 189896 kB
Shmem: 20044 kB
KReclaimable: 33300 kB
Slab: 74908 kB
SReclaimable: 33300 kB
SUnreclaim: 41608 kB
KernelStack: 5328 kB
PageTables: 7736 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 1008764 kB
Committed_AS: 1675032 kB
VmallocTotal: 263061440 kB
VmallocUsed: 11944 kB
VmallocChunk: 0 kB
Percpu: 720 kB
CmaTotal: 16384 kB
CmaAllocated: 1600 kB
CmaReleased: 14784 kB
CmaFree: 2088 kB
root@ido:/# free -m
totalused free shared buff/cache available
Mem: 1970 287 1316 19 366 1638
Swap: 0 0 0
root@ido:~# lsblk
NAMEMAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk2179:0 0 14.6G 0 disk
├─mmcblk2p1179:1 0 4M 0 part
├─mmcblk2p2179:2 0 4M 0 part
├─mmcblk2p3179:3 0 64M 0 part
├─mmcblk2p4179:4 0 128M 0 part
├─mmcblk2p5179:5 0 32M 0 part
├─mmcblk2p6179:6 0 2G 0 part /media/ido/userdata
├─mmcblk2p7179:7 0 128M 0 part /media/ido/oem
└─mmcblk2p8179:8 0 12.2G 0 part /
mmcblk2boot0179:32 0 4M 1 disk
mmcblk2boot1 179:64 0 4M 1 disk
root@ido:/# df -h
FilesystemSize Used Avail Use% Mounted on
/dev/root12G 3.5G 8.0G 31% /
devtmpfs974M 8.0K 974M 1% /dev
tmpfs985M 0 985M 0% /dev/shm
tmpfs197M 7.6M 190M 4% /run
tmpfs5.0M 4.0K 5.0M 1% /run/lock
tmpfs985M 0 985M 0% /sys/fs/cgroup
tmpfs197M 0 197M 0% /run/user/0
tmpfs197M 8.0K 197M 1% /run/user/1001
/dev/mmcblk2p7121M 12M 101M 11% /media/ido/oem
/dev/mmcblk2p62.0G 36K 1.8G 1% /media/ido/userdata
下面数字以kHz为单位。
root@ido:/# cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq
408000
408000
408000
408000
root@ido:/# cat /sys/class/thermal/thermal_zone0/temp
34375
root@ido:~# ifconfig
enp1s0: flags=4163 mtu 1500
inet192.168.0.96 netmask 255.255.255.0 broadcast 192.168.0.255
inet6fe80::a60a:bffe:32d2:8a02 prefixlen 64 scopeid 0x20<link>
ether9a:55:02:97:d9:a2 txqueuelen 1000 (Ethernet)
RXpackets 121 bytes 12817 (12.8 KB)
RXerrors 0 dropped 2 overruns 0 frame 0
TXpackets 31 bytes 5749 (5.7 KB)
TXerrors 0 dropped 0 overruns 0 carrier 0 collisions 0
deviceinterrupt 90 base 0xd000
eth0: flags=4099 mtu 1500
ether8a:18:a3:a0:63:c9 txqueuelen 1000 (Ethernet)
RXpackets 0 bytes 0 (0.0 B)
RXerrors 0 dropped 0 overruns 0 frame 0
TXpackets 0 bytes 0 (0.0 B)
TXerrors 0 dropped 0 overruns 0 carrier 0 collisions 0
deviceinterrupt 71
eth2: flags=4099 mtu 1500
ether8e:18:a3:a0:63:c9 txqueuelen 1000 (Ethernet)
RXpackets 0 bytes 0 (0.0 B)
RXerrors 0 dropped 0 overruns 0 frame 0
TXpackets 0 bytes 0 (0.0 B)
TXerrors 0 dropped 0 overruns 0 carrier 0 collisions 0
deviceinterrupt 75
lo: flags=73 mtu 65536
inet127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
looptxqueuelen 1000 (Local Loopback)
RXpackets 192 bytes 14785 (14.7 KB)
RXerrors 0 dropped 0 overruns 0 frame 0
TXpackets 192 bytes 14785 (14.7 KB)
TXerrors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4099 mtu 1500
etherc0:f5:35:12:5a:40 txqueuelen 1000 (Ethernet)
RXpackets 0 bytes 0 (0.0 B)
RXerrors 0 dropped 0 overruns 0 frame 0
TXpackets 0 bytes 0 (0.0 B)
TXerrors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@ido:~# route -n
KernelIP routing table
DestinationGateway Genmask Flags Metric Ref Use Iface
0.0.0.0192.168.0.1 0.0.0.0 UG 100 0 0 enp1s0
192.168.0.00.0.0.0 255.255.255.0 U 100 0 0 enp1s0
更多Linux常用系统查询命令,请关注下集。作者: Industio_触觉智能, 来源:面包板社区
链接: https://mbb.eet-china.com/blog/uid-me-4098392.html
版权声明:本文为博主原创,未经本人允许,禁止转载!
文章评论(0条评论)
登录后参与讨论