Linux-ls相关的命令
上周看SA敲了个lscpu的命令,才知道还可以这么简单的看和CPU相关的信息,以前只是知道 cat /proc/cpuinfo
lscpu如下
ashe@ubuntu:~$ lscpu
Architecture: x86_64
CPU 运行模式: 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 6
On-line CPU(s) list: 0-5
每个核的线程数:1
每个座的核数: 6
Socket(s): 1
NUMA 节点: 1
厂商 ID: GenuineIntel
CPU 系列: 6
型号: 158
Model name: Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz
步进: 10
CPU MHz: 3000.000
BogoMIPS: 6000.00
超管理器厂商: KVM
虚拟化类型: 完全
L1d 缓存: 32K
L1i 缓存: 32K
L2 缓存: 256K
L3 缓存: 9216K
NUMA node0 CPU(s): 0-5
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc nopl xtopology nonstop_tsc pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single ssbd ibrs ibpb stibp kaiser fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 invpcid adx clflushopt xsaveopt dtherm arat pln pts flush_l1d
想想也是,ls是list缩写,所以应该还有其他很多相关的命令,查看一些信息,比如下面这些
ashe@ubuntu:~$ ls
ls lsblk lscpu lshw lsipc lslogins lsof lspcmcia lsusb
lsattr lsb_release lsdiff lsinitramfs lslocks lsmod lspci lspgpot
比如这个lsusb
ashe@ubuntu:~$ lsusb
Bus 001 Device 003: ID 203a:fffa
Bus 001 Device 002: ID 203a:fffa
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub