Linux下基本的追寻命令和查阅新闻

并列举一些常用的硬件信息查看命令,如何在Linux/centos下查看网卡型号,使用 Inxi 可以很容易的获取所有的硬件信息,可以使用它获取用户的硬件和系统信息,因为这两个命令输出的信息非常多,Dmidecode这款软件允许你在Linux 系统下获取有关硬件方面的信息

Linux下基本的查找命令和查看音信

寻觅命令和硬件消息查阅是通常系统管理、维护最常的操作。上边就 Linux
的大旨查找命令做四个简易的可比,并列举部分常用的硬件音讯查阅命令。

man 常用选项

-k 知道功能、不知道名称
-f 知道名称、不知道功能

种种找出命令相比较

whereis 查找命令的可执行文件、源文件、man page路径
whatis 读取命令的描述
apropos 基于功能的查找
which 找出将要运行的命令的版本
locate 搜索文件名数据库
find 根据指定的查询条件搜索文件
find . -type f | grep -i blas
fidn . -type f -name "*.a" | grep -i blas
lsb_release -a 查看系统版本
alias 查看所有别名
ls -lh 按k、m、g查看文件

翻开硬件新闻

GPU信息

查看mic卡信息

sudo micinfo

查看gpu信息

sudo nvidia-smi

怎么在Linux/centos下查看网卡型号,怎样查看主板型号,CPU/显卡音讯,硬盘型号等硬件新闻

查阅网卡型号

[[email protected]]# lspci | grep Ethernet
00:19.0 Ethernet controller: Intel Corporation 82567V-2 Gigabit Network Connection

翻开内部存款和储蓄器和cpu最直白最常用的指令:

[[email protected]]# free
total used free shared buffers cached
Mem: 3069504 528876 2540628 0 76648 396152
-/+ buffers/cache: 56076 3013428
Swap: 5124692 0 5124692
[[email protected]]# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Pentium(R) Dual-Core CPU E6500 @ 2.93GHz
stepping : 10
cpu MHz : 1596.000
cache size : 2048 KB

查看硬盘音讯(查看硬盘型号和硬盘种类号):

[[email protected]]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 2.0G 272M 1.6G 15% /
/dev/sda8 199G 188M 189G 1% /home
/dev/sda3 9.7G 1.3G 7.9G 15% /usr
/dev/sda2 9.7G 198M 9.0G 3% /var
/dev/sda1 99M 17M 77M 18% /boot

方法1:

[[email protected]]# hdparm -i /dev/sda
/dev/sda:
Model=SAMSUNG HE253GJ , FwRev=1AJ30001, SerialNo= S2B5J90ZC12060
Config={ Fixed }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
BuffType=unknown, BuffSize=16384kB, MaxMultSect=16, MultSect=?16?
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2
AdvancedPM=yes: disabled (255) WriteCache=enabled
Drive conforms to: unknown: ATA/ATAPI-0 ATA/ATAPI-1 ATA/ATAPI-2 ATA/ATAPI-3 ATA/ATAPI-4 ATA/ATAPI-5 ATA/ATAPI-6 ATA/ATAPI-7
* signifies the current active mode

方法2:

[[email protected]]# dmesg | grep ATA
ata1: SATA max UDMA/133 cmd 0xf190 ctl 0xf180 bmdma 0xf150 irq 185
ata2: SATA max UDMA/133 cmd 0xf170 ctl 0xf160 bmdma 0xf158 irq 185
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.00: ATA-8: SAMSUNG HE253GJ, 1AJ30001, max UDMA/133
ata2: SATA link down (SStatus 0 SControl 300)
Vendor: ATA Model: SAMSUNG HE253GJ Rev: 1AJ3
ata3: SATA max UDMA/133 cmd 0xf130 ctl 0xf120 bmdma 0xf0f0 irq 185
ata4: SATA max UDMA/133 cmd 0xf110 ctl 0xf100 bmdma 0xf0f8 irq 185
ata3: SATA link down (SStatus 0 SControl 300)
ata4: SATA link down (SStatus 0 SControl 300)
ata5: PATA max UDMA/100 cmd 0xe040 ctl 0xe030 bmdma 0xe000 irq 177

[[email protected]]# dmidecode|more
# dmidecode 2.10
SMBIOS 2.4 present.
57 structures occupying 2318 bytes.
Table at 0x000E84B0.
Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
Vendor: Intel Corp.
Version: GTG4310H.86A.0019.2009.0625.1334
Release Date: 06/25/2009

澳门京葡网站 1


查找命令和硬件消息查阅是平日系统一管理理、维护最常的操作。上面就 Linux
的核心查找命令做三个回顾的比…

监察和控制 CPU 温度和Computer风扇转速

能够选拔 -s 选项监察和控制
陈设了传感器的机械
获取温度轻风扇转速:

  1. $ inxi -s
  2. Sensors:SystemTemperatures: cpu:53.0C mobo: N/A
  3. FanSpeeds(in rpm): cpu: N/A

 

Linux查看系统硬件新闻

上边介绍下在centos下硬件新闻的查阅,在Linux下查看须要选取各个吩咐,不像Windows上得以极度直观地见到。

翻开全部硬件的消息

1)dmidecode

2)dmesg

Dmidecode那款软件允许你在Linux 系统下获得有关硬件方面包车型大巴音讯。Dmidecode
服从 SMBIOS/DMI 规范,其出口的信息包罗BIOS、系统、主板、管理器、内部存款和储蓄器、缓存等等。

貌似非常少用那五个指令直接查看,因为那五个指令输出的消息相当多。一般会使用管道过滤出多需求的音信举行查看或透过-t选拔钦定的硬件查看新闻。举个例子:

[[email protected]~]``#dmidecode|grep-icpu````SocketDesignation:CPU1````Version:Intel(R)Core(TM)[email protected]````InternalReferenceDesignator:J2B3-CPUFAN````Description:CPUInternalTemperature

查看当前系统的本子,假若redhat,则查看的文本是/etc/redhat-release

[[email protected]~]``#cat/etc/centos-release``CentOSrelease6.5(Final)

查阅当前系统是33位依旧六拾叁人的

[[email protected]~]``#getconfLONG_BIT``64

CPU

1)通过lscpu查看cpu的计算新闻

[[email protected]~]``#lscpu``Architecture:x86_64``#cpu架构``CPU``op``-mode(s):32-bit,64-bit``ByteOrder:LittleEndian``CPU(s):4``#逻辑cpu数``On-lineCPU(s)list:0-3``Thread(s)percore:2``#每个核心支持2个线程``Core(s)persocket:2``#每颗cpu两个核心``Socket(s):1``#总共一颗cpu``NUMAnode(s):1``VendorID:GenuineIntel``#cpu生产厂商``CPUfamily:6``Model:42``Stepping:7``CPUMHz:800.000``BogoMIPS:4589.75``Virtualization:VT-x``#支持cpu虚拟化技术``L1dcache:32K``L1icache:32K``L2cache:256K``#2级缓存``L3cache:3072K``#3级缓存``NUMAnode0CPU(s):0-3

2)/proc/cpuinfo文件中可以见到cpu的型号和最高频率

[[email protected]~]``#cat/proc/cpuinfo``processor :0``vendor_id :GenuineIntel``cpufamily :6``model :42``modelname :Intel(R)Core(TM)[email protected]``stepping :7``cpuMHz :800.000``cachesize :3072KB``......

3)也能够经过dmicecode命令通过-t选项内定cpu类型来查阅(有更详尽的消息)

[[email protected]~]``#dmidecode-tprocessor``#dmidecode2.11``SMBIOS2.6present.``Handle0x0004,DMI``type``4,42bytes``ProcessorInformation````SocketDesignation:CPU1````Type:CentralProcessor````Family:Corei5````Manufacturer:Intel````ID:A7060200FFFBEBBF````Signature:Type0,Family6,Model42,Stepping7````Flags:````FPU(Floating-pointuniton-chip)````VME(Virtualmodeextension)````DE(Debuggingextension)````PSE(Pagesizeextension)````TSC(Timestampcounter)````MSR(Modelspecificregisters)````PAE(Physicaladdressextension)````MCE(Machinecheckexception)````CX8(CMPXCHG8instructionsupported)````APIC(On-chipAPIChardwaresupported)````SEP(Fastsystemcall)````MTRR(Memory``type``rangeregisters)````PGE(Pageglobal``enable``)````MCA(Machinecheckarchitecture)````CMOV(Conditionalmoveinstructionsupported)````PAT(Pageattributetable)````PSE-36(36-bitpagesizeextension)````CLFSH(CLFLUSHinstructionsupported)````DS(Debugstore)````ACPI(ACPIsupported)````MMX(MMXtechnologysupported)````FXSR(FXSAVEandFXSTORinstructionssupported)````SSE(StreamingSIMDextensions)````SSE2(StreamingSIMDextensions2)````SS(Self-snoop)````HTT(Multi-threading)````TM(Thermalmonitorsupported)````PBE(Pending``break``enabled)````Version:Intel(R)Core(TM)[email protected]````Voltage:1.1V````ExternalClock:100MHz````MaxSpeed:2300MHz````CurrentSpeed:2300MHz````Status:Populated,Enabled````Upgrade:Other````L1CacheHandle:0x0005````L2CacheHandle:0x0006````L3CacheHandle:0x0007````SerialNumber:ToBeFilledByO.E.M.````AssetTag:ToBeFilledByO.E.M.````PartNumber:ToBeFilledByO.E.M.````CoreCount:2````CoreEnabled:1````ThreadCount:2````Characteristics:````64-bitcapable

内存

查阅内部存款和储蓄器景况

1)

[[email protected]~]``#free-m````totalused``free``sharedbufferscached``Mem:3739224351401579``-/+buffers``/cache``:1293609``Swap:409504095

2)

[[email protected]~]``#cat/proc/meminfo``MemTotal:3828868kB``MemFree:3599240kB``Buffers:16096kB``Cached:80956kB``SwapCached:0kB``Active:44676kB``Inactive:74332kB``Active(anon):22288kB``Inactive(anon):424kB``Active(``file``):22388kB``Inactive(``file``):73908kB``......

3)通过dmicecode命令通过-t选项钦赐memory来查看

[[email protected]~]``#dmidecode-tmemory``#dmidecode2.11``SMBIOS2.6present.``Handle0x001D,DMI``type``16,15bytes``PhysicalMemoryArray````Location:SystemBoardOrMotherboard````Use:SystemMemory````ErrorCorrectionType:None````MaximumCapacity:16GB````ErrorInformationHandle:NotProvided````NumberOfDevices:2``Handle0x001E,DMI``type``17,28bytes``MemoryDevice````ArrayHandle:0x001D````ErrorInformationHandle:0x0000````TotalWidth:Unknown````DataWidth:Unknown````Size:NoModuleInstalled````FormFactor:DIMM````Set:None````Locator:DIMM_A````BankLocator:BANK0````Type:Unknown````TypeDetail:None````Speed:Unknown````Manufacturer:NotSpecified````SerialNumber:NotSpecified````AssetTag:NotSpecified````PartNumber:NotSpecified````Rank:Unknown``Handle0x001F,DMI``type``17,28bytes``MemoryDevice````ArrayHandle:0x001D````ErrorInformationHandle:0x0000````TotalWidth:64bits````DataWidth:64bits````Size:4096MB````FormFactor:SODIMM````Set:None````Locator:DIMM_B````BankLocator:BANK2````Type:DDR3````TypeDetail:Synchronous````Speed:1333MHz````Manufacturer:80CE````SerialNumber:21255F39````AssetTag:01112100````PartNumber:M471B5273DH0-CH9````Rank:Unknown

上边展现了最大支撑的内部存款和储蓄器大小:16G,一共有五个内部存款和储蓄器插槽,用了一个。以及内部存款和储蓄器的详细音讯,包括内部存款和储蓄器类型,位宽,大小,频率…….

磁盘

[[email protected]~]``#lsblk``NAMEMAJ:MINRMSIZEROTYPEMOUNTPOINT``sda8:00465.8G0disk``├─sda18:10200M0part``/boot``├─sda28:2030G0part``/usr``├─sda38:305G0part/``├─sda48:401K0part``├─sda58:5050G0part``/data``├─sda68:6030G0part``/usr/local``├─sda78:7020G0part``/var``├─sda88:8010G0part``/home``├─sda98:9010G0part``/tmp``└─sda108:1004G0part[SWAP]``sr011:011024M0rom

能够见见各样分区的尺寸及挂载景况,相比直观,若要观察有个别分区上的文件系统情形,可使用tune2fs
-l /dev/sdax,当然这些不是硬件级其余查阅了。

[[email protected]~]``#tune2fs-l/dev/sda5``tune2fs1.41.12(17-May-2010)``Filesystemvolumename:<none>``Lastmountedon:<notavailable>``FilesystemUUID:273a5dca-3d41-47e0-b48b-ebd7a1ae98ed``Filesystemmagicnumber:0xEF53``Filesystemrevision``#:1(dynamic)``Filesystemfeatures:has_journalext_attrresize_inodedir_indexfiletypeneeds_recoveryextentflex_bgsparse_superlarge_filehuge_fileuninit_bgdir_nlinkextra_isize``Filesystemflags:signed_directory_hash``Default``mount``options:user_xattracl``Filesystemstate:clean``......

若要查看更详尽的硬盘和分区消息:

[[email protected]~]``#fdisk-l``Disk``/dev/sda``:500.1GB,500107862016bytes``255heads,63sectors``/track``,60801cylinders``Units=cylindersof16065*512=8225280bytes``Sectorsize(logical``/physical``):512bytes/512bytes``I``/O``size(minimum``/optimal``):512bytes/512bytes``Diskidentifier:0x00032c3d````DeviceBootStartEndBlocksIdSystem``/dev/sda1``*12620480083Linux``Partition1doesnotendoncylinderboundary.``/dev/sda2``2639423145728083Linux``/dev/sda3``39424595524288083Linux``/dev/sda4``4595608024514805765Extended``/dev/sda5``4595111225242880083Linux``/dev/sda6``11123150393145728083Linux``/dev/sda7``15039176502097152083Linux``/dev/sda8``17650189551048576083Linux``/dev/sda9``18955202611048576083Linux``/dev/sda10``2026120783419430482Linuxswap/Solaris

查看各分区的应用情形:

[[email protected]~]``#df-h``FilesystemSizeUsedAvailUse%Mountedon``/dev/sda3``5.0G377M4.4G8%/``tmpfs1.9G01.9G0%``/dev/shm``/dev/sda1``194M31M153M17%``/boot``/dev/sda5``50G775M46G2%``/data``/dev/sda8``9.9G151M9.2G2%``/home``/dev/sda9``9.9G151M9.2G2%``/tmp``/dev/sda2``30G5.0G24G18%``/usr``/dev/sda6``30G173M28G1%``/usr/local``/dev/sda7``20G2.3G17G12%``/var

网卡

由此lspci查看pci设备,通过管道过滤就能够找到网卡新闻

[[email protected]~]``#lspci|grep-inet``05:00.0Ethernetcontroller:RealtekSemiconductorCo.,Ltd.RTL8101E``/RTL8102E``PCIExpressFastEthernetcontroller(rev05)``09:00.0Networkcontroller:IntelCorporationCentrinoWireless-N1030[RainbowPeak](rev34)

Ethernet controller是有线网卡,Network controller是有线网卡。

能够用ethtool命令查看某些网络接口的详细新闻

[[email protected]~]``#ethtoolp1p1``Settings``for``p1p1:````Supportedports:[TPMII]````Supportedlinkmodes:10baseT``/Half``10baseT``/Full````100baseT``/Half``100baseT``/Full````Supportedpauseframeuse:No````Supportsauto-negotiation:Yes````Advertisedlinkmodes:10baseT``/Half``10baseT``/Full````100baseT``/Half``100baseT``/Full````Advertisedpauseframeuse:SymmetricReceive-only````Advertisedauto-negotiation:Yes````Linkpartneradvertisedlinkmodes:10baseT``/Half``10baseT``/Full````100baseT``/Half``100baseT``/Full````Linkpartneradvertisedpauseframeuse:Symmetric````Linkpartneradvertisedauto-negotiation:Yes````Speed:100Mb``/s````Duplex:Full````Port:MII````PHYAD:0````Transceiver:internal````Auto-negotiation:on````SupportsWake-on:pumbg````Wake-on:g````Currentmessagelevel:0x00000033(51)````drvprobeifdownifup````Linkdetected:``yes

丰富-i可查阅网卡驱动:

[[email protected]~]``#ethtool-ip1p1``driver:r8169``#这个就是驱动程序``version:2.3LK-NAPI``firmware-version:rtl_nic``/rtl8105e-1``.fw``bus-info:0000:05:00.0``supports-statistics:``yes``supports-``test``:no``supports-eeprom-access:no``supports-register-dump:``yes``supports-priv-flags:no

若要查看全部的网络接口(ip link show,ifocnfig -a):

[[email protected]~]``#iplinkshow``1:lo:<LOOPBACK,UP,LOWER_UP>mtu16436qdiscnoqueuestateUNKNOWN````link``/loopback``00:00:00:00:00:00brd00:00:00:00:00:00``2:p1p1:<BROADCAST,MULTICAST,UP,LOWER_UP>mtu1500qdiscpfifo_faststateUPqlen1000````link``/ether``18:03:73:66:66:eebrdff:ff:ff:ff:ff:ff``3:wlan0:<NO-CARRIER,BROADCAST,MULTICAST,UP>mtu1500qdiscmqstateDOWNqlen1000````link``/ether``ac:72:89:04:ea:84brdff:ff:ff:ff:ff:ff

[[email protected]~]``#ifconfig``br0Linkencap:EthernetHWaddr18:03:73:66:66:EE````inetaddr:192.168.0.165Bcast:192.168.0.255Mask:255.255.255.0````inet6addr:fe80::1a03:73ff:fe66:66ee``/64``Scope:Link``.......

查阅全数pci设备音信(-v[详细消息],-vv[更详细音信]):

[[email protected]~]``#lspci``00:00.0Hostbridge:IntelCorporation2ndGenerationCoreProcessorFamilyDRAMController(rev09)``#主板芯片``00:01.0PCIbridge:IntelCorporationXeonE3-1200``/2nd``GenerationCoreProcessorFamilyPCIExpressRootPort(rev09)``00:02.0VGAcompatiblecontroller:IntelCorporation2ndGenerationCoreProcessorFamilyIntegratedGraphicsController(rev09)``00:16.0Communicationcontroller:IntelCorporation6Series``/C200``SeriesChipsetFamilyMEIController``#1(rev04)``00:1a.0USBcontroller:IntelCorporation6Series``/C200``SeriesChipsetFamilyUSBEnhancedHostController``#2(rev05)#usb控制器``00:1b.0Audiodevice:IntelCorporation6Series``/C200``SeriesChipsetFamilyHighDefinitionAudioController(rev05)``#声卡``00:1c.0PCIbridge:IntelCorporation6Series``/C200``SeriesChipsetFamilyPCIExpressRootPort1(revb5)``#pci插槽``00:1c.1PCIbridge:IntelCorporation6Series``/C200``SeriesChipsetFamilyPCIExpressRootPort2(revb5)``00:1c.3PCIbridge:IntelCorporation6Series``/C200``SeriesChipsetFamilyPCIExpressRootPort4(revb5)``00:1c.4PCIbridge:IntelCorporation6Series``/C200``SeriesChipsetFamilyPCIExpressRootPort5(revb5)``00:1c.7PCIbridge:IntelCorporation6Series``/C200``SeriesChipsetFamilyPCIExpressRootPort8(revb5)``00:1d.0USBcontroller:IntelCorporation6Series``/C200``SeriesChipsetFamilyUSBEnhancedHostController``#1(rev05)``00:1f.0ISAbridge:IntelCorporationHM67ExpressChipsetFamilyLPCController(rev05)``00:1f.2SATAcontroller:IntelCorporation6Series``/C200``SeriesChipsetFamily6portSATAAHCIController(rev05)``#硬盘接口``00:1f.3SMBus:IntelCorporation6Series``/C200``SeriesChipsetFamilySMBusController(rev05)``01:00.0VGAcompatiblecontroller:NVIDIACorporationGF108M[GeForceGT525M](reva1)``#显卡``01:00.1Audiodevice:NVIDIACorporationGF108HighDefinitionAudioController(reva1)``#声卡``05:00.0Ethernetcontroller:RealtekSemiconductorCo.,Ltd.RTL8101E``/RTL8102E``PCIExpressFastEthernetcontroller(rev05)``#有线网卡``09:00.0Networkcontroller:IntelCorporationCentrinoWireless-N1030[RainbowPeak](rev34)``#无线网卡``0b:00.0USBcontroller:NECCorporationuPD720200USB3.0HostController(rev04)

[[email protected]~]``#dmidecode-taf``Invalid``type``keyword:af``Valid``type``keywordsare:````bios````system````baseboard````chassis````processor````memory````cache````connector````slot

也能够透过dmidecode命令内定地方的这一个硬件来查阅相关音讯!!!

上面介绍下在centos下硬件消息的查看,在Linux下查看要求选拔种种指令,不像Windows上能够极度直观地看看。
查看全数…

赢得硬盘新闻

使用 -D 选项查看硬盘新闻(大小、ID、型号):

  1. $ inxi -D
  2. Drives: HDD TotalSize:1000.2GB(20.0% used) ID-1:/dev/sda model: ST1000LM024_HN size:1000.2GB

 

获得简要的系统音讯

使用 -b 选项呈现上述消息的大约系统新闻:

  1. $ inxi -b
  2. System:Host:TecMintKernel:4.4.0-21-generic x86_64 (64 bit)Desktop:Cinnamon3.0.7
  3. Distro:LinuxMint18Sarah
  4. Machine:System: LENOVO (portable) product:20354 v:Lenovo Z50-70
  5. Mobo: LENOVO model:Lancer5A5 v:31900059WINBios: LENOVO v:9BCN26WWdate:07/31/2014
  6. CPU:Dual core IntelCore i5-4210U(-HT-MCP-) speed/max:2018/2700MHz
  7. Graphics:Card-1:IntelHaswell-ULT IntegratedGraphicsController
  8. Card-2: NVIDIA GM108M [GeForce840M]
  9. DisplayServer: X.Org1.18.4 drivers: intel (unloaded: fbdev,vesa)Resolution:1920x1080@60.05hz
  10. GLX Renderer:Mesa DRI IntelHaswellMobile GLX Version:3.0Mesa11.2.0
  11. Network:Card-1:Realtek RTL8111/8168/8411 PCI ExpressGigabitEthernetController driver: r8169
  12. Card-2:Realtek RTL8723BE PCIeWirelessNetworkAdapter driver: rtl8723be
  13. Drives: HDD TotalSize:1000.2GB(20.0% used)
  14. Info:Processes:233Uptime:3:23Memory:3137.5/7879.9MBClient:Shell(bash) inxi:2.2.35

 

澳门京葡网站,Inxi 工具的着力用法

用下边的中央用法获取系统和硬件的详细消息。

 

收获 CPU 及主频消息

使用 -C 选项查看完整的 CPU 音信,满含每核 CPU 的功能及可用的最大主频。

  1. $ inxi -C
  2. CPU:Dual core IntelCore i5-4210U(-HT-MCP-) cache:3072 KB
  3. clock speeds: max:2700MHz1:1942MHz2:1968MHz3:1734MHz4:1710MHz

 

运作在命令行和 IRC 上的 Inxi 输出略有不一样,IRC
上会有部分可供用户选用的私下认可过滤器和颜料选项。帮衬的 IRC
客户端有:BitchX、Gaim/Pidgin、ircII、Irssi、 Konversation、 Kopete、
KSirc、 KVIrc、 Weechat 和 Xchat
以及其他的有的客户端,它们有着体现内置或外部 Inxi 输出的力量。

获取基本和发行版本信息

使用 Inxi 的 -S
选项查看本机系统消息(主机名、内核音信、桌面情况和发行版):

  1. $ inxi -S
  2. System:Host:TecMintKernel:4.4.0-21-generic x86_64 (64 bit)Desktop:Cinnamon3.0.7
  3. Distro:LinuxMint18Sarah

 

监察网络设施

上面包车型客车下令会列出网卡新闻,包蕴接口新闻、互连网频率、mac
地址、网卡状态和网络 IP 等新闻。

  1. $ inxi -Nni
  2. Network:Card-1:Realtek RTL8111/8168/8411 PCI ExpressGigabitEthernetController driver: r8169
  3. IF: enp1s0 state: up speed:100Mbps duplex: full mac:28:d2:44:eb:bd:98
  4. Card-2:Realtek RTL8723BE PCIeWirelessNetworkAdapter driver: rtl8723be
  5. IF: wlp2s0 state: down mac:38:b1:db:7c:78:c7
  6. WAN IP:111.91.115.195 IF: wlp2s0 ip-v4: N/A
  7. IF: enp1s0 ip-v4:192.168.0.103