2个功用庞大的获得,Linux下基本的追寻命令和查看消息

www.ca88.com

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

www.ca88.com 1


查找命令和硬件消息查阅是常见系统管理、维护最常的操作。下边就 Linux
的主导查找命令做三个简约的比…

Inxi 最初是为调整台和
ILacrosseC(网络连接聊天)开垦的二个有力且能够的命令行系统音讯脚本。能够行使它拿走用户的硬件和系统新闻,它也用于调节和测试或然社区技巧支持理工科程师具。

运用 Inxi 能够很轻松的获得具有的硬件新闻:硬盘、声卡、显卡、网卡、CPU 和
RAM 等。同时也能够得到大量的操作系统音讯,比方硬件驱动、Xorg
、桌面情状、内核、GCC 版本,进度,开机时间和内部存款和储蓄器等音信。

运作在命令行和 I中华VC 上的 Inxi 输出略有差异,I卡宴C
上会有局地可供用户使用的默许过滤器和颜色选项。帮忙的 ISportageC
客户端有:BitchX、Gaim/Pidgin、ircII、Irssi、 Konversation、 Kopete、
KSirc、 KVIrc、 Weechat 和 Xchat
以及任何的片段客户端,它们具有展现内置或外部 Inxi 输出的力量。

 

在 Linux 系统上设置 Inxi

大多数主流 Linux 发行版的酒馆中都有 Inxi ,蕴涵大多数 BSD 系统。

  1. $ sudoapt-get install inxi [OnDebian/Ubuntu/LinuxMint]
  2. $ sudoyum install inxi [OnCentOS/RHEL/Fedora]
  3. $ sudo dnf install inxi [OnFedora22+]

在选择 Inxi 从前,用上边包车型地铁一声令下查看 Inxi
全部注重和引入的应用,以及种种目录,并突显需求安装哪些包来支撑加以的职能。

  1. $ inxi --recommends

Inxi 的输出:

  1. inxi will now begin checking for the programs it needs to operate.First a check of the main languages and tools
  2. inxi uses.Pythonis only for debugging data collection.
  3. ---------------------------------------------------------------------------
  4. Bash version:4.3.42(1)-release
  5. Gawk version:4.1.3,
  6. Sed version:
  7. Sudo version:1.8.16
  8. Python version:2.7.12
  9. ---------------------------------------------------------------------------
  10. TestOne:RequiredSystemDirectories(LinuxOnly).
  11. If one of these system directories is missing, inxi cannot operate:
  12. /proc.......................................................................Present
  13. /sys........................................................................Present
  14. All the directories are present.
  15. ---------------------------------------------------------------------------
  16. TestTwo:RequiredCoreApplications.
  17. If one of these applications is missing, inxi cannot operate:
  18. df(info: partition data).................................................../bin/df
  19. gawk(info: core tool)....................................................../usr/bin/gawk
  20. grep(info: string search)................................................../bin/grep
  21. lspci (info: hardware data)................................................./usr/bin/lspci
  22. ps(info: process data)...................................................../bin/ps
  23. readlink..................................................................../bin/readlink
  24. sed(info: string replace)................................................../bin/sed
  25. tr(info: character replace)................................................/usr/bin/tr
  26. uname(info: kernel data).................................................../bin/uname
  27. wc(info: word character count)............................................./usr/bin/wc
  28. All the applications are present.
  29. ---------------------------------------------------------------------------
  30. TestThree:ScriptRecommendsforGraphicsFeatures.
  31. NOTE:If you donotuse X these donot matter (like a headless server).Otherwise,if one of these applications
  32. is missing, inxi will have incomplete output:
  33. glxinfo (info:-G glx info)................................................./usr/bin/glxinfo
  34. xdpyinfo (info:-G multi screen resolution)................................./usr/bin/xdpyinfo
  35. xprop (info:-S desktop data).............................................../usr/bin/xprop
  36. xrandr (info:-G single screen resolution)................................../usr/bin/xrandr
  37. All the applications are present.
  38. ---------------------------------------------------------------------------
  39. TestFour:ScriptRecommendsforRemainingFeatures.
  40. If one of these applications is missing, inxi will have incomplete output:
  41. dig (info:-i first wlan ipdefaulttest).................................../usr/bin/dig
  42. dmidecode (info:-M ifno sys machine data;-m memory)....................../usr/sbin/dmidecode
  43. file(info:-o unmounted file system)......................................./usr/bin/file
  44. hciconfig (info:-n -i bluetooth data)....................................../bin/hciconfig
  45. hddtemp (info:-Dx show hdd temp).........................................../usr/sbin/hddtemp
  46. ifconfig(info:-i ip lan-deprecated)......................................./sbin/ifconfig
  47. ip(info:-i ip lan)......................................................../sbin/ip
  48. sensors (info:-s sensors output).........................................../usr/bin/sensors
  49. strings(info:-I sysvinit version)........................................./usr/bin/strings
  50. lsusb (info:-A usb audio;-N usb networking)................................/usr/bin/lsusb
  51. modinfo (info:-Ax,-Nxmodule version)....................................../sbin/modinfo
  52. runlevel(info:-I runlevel)................................................/sbin/runlevel
  53. sudo(info:-Dx hddtemp-user;-o file-user)................................../usr/bin/sudo
  54. uptime(info:-I uptime(check which package owns Debian))................../usr/bin/uptime
  55. All the applications are present.
  56. ---------------------------------------------------------------------------
  57. TestFive:ScriptRecommendsforRemainingFeatures.
  58. One of these downloaders needed for options -i/-w/-W (-U/-![11-15],if supported):
  59. wget(info:-i wan ip;-w/-W;-U/-![11-15](if supported)).................../usr/bin/wget
  60. curl (info:-i wan ip;-w/-W;-U/-![11-15](if supported)).................../usr/bin/curl
  61. All the applications are present.
  62. ---------------------------------------------------------------------------
  63. TestSix:SystemDirectoriesforVariousInformation.
  64. (Unless otherwise noted, these are for GNU/Linux systems)
  65. If one of these directories is missing, inxi may have incomplete output:
  66. /sys/class/dmi/id(info:-M system, motherboard, bios)......................Present
  67. /dev (info:-l,-u,-o,-p,-P,-D disk partition data)..........................Present
  68. /dev/disk/by-label (info:-l,-o,-p,-P partition labels).....................Present
  69. /dev/disk/by-uuid (info:-u,-o,-p,-P partition uuid)........................Present
  70. All the directories are present.
  71. ---------------------------------------------------------------------------
  72. TestSeven:SystemFilesforVariousInformation.
  73. (Unless otherwise noted, these are for GNU/Linux systems)
  74. If one of these files is missing, inxi may have incomplete output:
  75. /proc/asound/cards (info:-A sound card data)...............................Present
  76. /proc/asound/version (info:-A ALSA data)...................................Present
  77. /proc/cpuinfo (info:-C cpu data)...........................................Present
  78. /etc/lsb-release (info:-S distro version data [deprecated])................Present
  79. /proc/mdstat (info:-R mdraid data).........................................Present
  80. /proc/meminfo (info:-I memory data)........................................Present
  81. /etc/os-release (info:-S distro version data)..............................Present
  82. /proc/partitions (info:-p,-P partitions data)..............................Present
  83. /proc/modules (info:-G module data)........................................Present
  84. /proc/mounts (info:-P,-p partition advanced data)..........................Present
  85. /var/run/dmesg.boot (info:-D,-d disk data [BSD only])......................Missing
  86. /proc/scsi/scsi (info:-D Advanced hard disk data [used rarely])............Present
  87. /var/log/Xorg.0.log(info:-G graphics driver load status)..................Present
  88. The following files are missing from your system:
  89. File:/var/run/dmesg.boot
  90. ---------------------------------------------------------------------------
  91. All tests completed.

 

Inxi 工具的骨干用法

用上边包车型大巴为主用法获取系统和硬件的详细信息。

 

获取 Linux 系统新闻

Inix 不加任何取舍就能出口上边的新闻:CPU
、内核、开机时间长度、内部存款和储蓄器大小、硬盘大小、进度数、登陆终端以及 Inxi 版本。

  1. $ inxi
  2. CPU~Dual core IntelCore i5-4210U(-HT-MCP-) speed/max~2164/2700MHzKernel~4.4.0-21-generic x86_64 Up~3:15Mem~3122.0/7879.9MB HDD~1000.2GB(20.0% used)Procs~234Client~Shell inxi~2.2.35

 

取得基本和批发版本音信

使用 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

 

取得Computer机型

使用 -M 选项查看机型(台式机/台式机)、产品 ID
、机器版本、主板、成立商和 BIOS 等信息:

  1. $ inxi -M
  2. Machine:System: LENOVO (portable) product:20354 v:Lenovo Z50-70
  3. Mobo: LENOVO model:Lancer5A5 v:31900059WINBios: LENOVO v:9BCN26WWdate:07/31/2014

 

获得 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

 

获得显卡音讯

使用 -G 选项查看显卡音信,包涵显卡类型、展现服务器、系统分辨率、GLX
渲染器和 GLX 版本等等(LCTT 译注: GLX 是2个 X 窗口系统的 OpenGL
扩充)。

  1. $ inxi -G
  2. Graphics:Card-1:IntelHaswell-ULT IntegratedGraphicsController
  3. Card-2: NVIDIA GM108M [GeForce840M]
  4. DisplayServer: X.Org1.18.4 drivers: intel (unloaded: fbdev,vesa)Resolution:1920x1080@60.05hz
  5. GLX Renderer:Mesa DRI IntelHaswellMobile GLX Version:3.0Mesa11.2.0

www.ca88.com, 

获得声卡新闻

使用 -A 选项查看声卡新闻:

  1. $ inxi -A
  2. Audio:Card-1Intel8Series HD AudioController driver: snd_hda_intel Sound: ALSA v: k4.4.0-21-generic
  3. Card-2IntelHaswell-ULT HD AudioController driver: snd_hda_intel

 

获得网卡音信

使用 -N 选项查看网卡新闻:

  1. $ inxi -N
  2. Network:Card-1:Realtek RTL8111/8168/8411 PCI ExpressGigabitEthernetController driver: r8169
  3. Card-2:Realtek RTL8723BE PCIeWirelessNetworkAdapter driver: rtl8723be

 

赢得硬盘音信

使用 -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

 

得到硬盘分区新闻

使用 -p
选项输出完整的硬盘分区音信,包涵各样分区的分区大小、已用空间、可用空间、文件系统以及文件系统类型。

  1. $ inxi -p
  2. Partition: ID-1:/ size: 324G used: 183G (60%) fs: ext4 dev: /dev/sda10
  3. ID-2: swap-1size:4.00GB used:0.00GB(0%) fs: swap dev:/dev/sda9

 

得到完整的 Linux 系统消息

使用 -F 选项查看能够全部的 Inxi 输出(安全起见比方互联网 IP
地址新闻未有展现,上面包车型大巴演示只显示部分输出音信):

  1. $ inxi -F
  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-) cache:3072 KB
  7. clock speeds: max:2700MHz1:1716MHz2:1764MHz3:1776MHz4:1800MHz
  8. Graphics:Card-1:IntelHaswell-ULT IntegratedGraphicsController
  9. Card-2: NVIDIA GM108M [GeForce840M]
  10. DisplayServer: X.Org1.18.4 drivers: intel (unloaded: fbdev,vesa)Resolution:1920x1080@60.05hz
  11. GLX Renderer:Mesa DRI IntelHaswellMobile GLX Version:3.0Mesa11.2.0
  12. Audio:Card-1Intel8Series HD AudioController driver: snd_hda_intel Sound: ALSA v: k4.4.0-21-generic
  13. Card-2IntelHaswell-ULT HD AudioController driver: snd_hda_intel
  14. Network:Card-1:Realtek RTL8111/8168/8411 PCI ExpressGigabitEthernetController driver: r8169
  15. IF: enp1s0 state: up speed:100Mbps duplex: full mac:28:d2:44:eb:bd:98
  16. Card-2:Realtek RTL8723BE PCIeWirelessNetworkAdapter driver: rtl8723be
  17. IF: wlp2s0 state: down mac:38:b1:db:7c:78:c7
  18. Drives: HDD TotalSize:1000.2GB(20.0% used) ID-1:/dev/sda model: ST1000LM024_HN size:1000.2GB
  19. Partition: ID-1:/ size: 324G used: 183G (60%) fs: ext4 dev: /dev/sda10
  20. ID-2: swap-1size:4.00GB used:0.00GB(0%) fs: swap dev:/dev/sda9
  21. RAID:No RAID devices:/proc/mdstat, md_mod kernel module present
  22. Sensors:SystemTemperatures: cpu:56.0C mobo: N/A
  23. FanSpeeds(in rpm): cpu: N/A
  24. Info:Processes:234Uptime:3:26Memory:3188.9/7879.9MBClient:Shell(bash) inxi:2.2.35

 

动用 Inxi 工具监察和控制 Linux 系统

上边是监督检查 Linux 系统经过、开机时间和内部存款和储蓄器的多少个选项的利用方式。

 

监理 Linux 进度的内存使用

选择上面包车型大巴指令查看进程数、开机时间和内存使用状态:

  1. $ inxi -I
  2. Info:Processes:232Uptime:3:35Memory:3256.3/7879.9MBClient:Shell(bash) inxi:2.2.35

 

监察和控制进程占用的 CPU 和内部存款和储蓄器财富

Inxi 默许显示 前 5 个最消耗 CPU
和内存的经过。
-t 选项和 c 选项联合使用查看前 五 个最消耗 CPU
能源的进程,查看最消耗内部存款和储蓄器的经过使用 -t 选项和 m 选项; -t选项 和
cm 选项联合利用展现前 5 个最消耗 CPU 和内部存款和储蓄器能源的进度。

  1. -----------------Linux CPU Usage-----------------
  2. $ inxi -t c
  3. Processes: CPU:% used -top5 active
  4. 1: cpu:53.7% command: plugin-container pid:3066
  5. 2: cpu:20.0% command: java pid:1527
  6. 3: cpu:19.7% command: firefox pid:3018
  7. 4: cpu:4.6% command:Xorg pid:2114
  8. 5: cpu:3.0% command: cinnamon pid:2835

  1. -----------------LinuxMemoeryUsage-----------------
  2. $ inxi -t m
  3. Processes:Memory: MB /% used -Used/Total:3212.5/7879.9MB-top5 active
  4. 1: mem:980.51MB(12.4%) command: plugin-container pid:3066
  5. 2: mem:508.96MB(6.4%) command: java pid:1527
  6. 3: mem:507.89MB(6.4%) command: firefox pid:3018
  7. 4: mem:244.05MB(3.0%) command: chrome pid:7405
  8. 5: mem:211.46MB(2.6%) command: chrome pid:6146

  1. -----------------Linux CPU andMemoryUsage-----------------
  2. $ inxi -t cm
  3. Processes: CPU:% used -top5 active
  4. 1: cpu:53.7% command: plugin-container pid:3066
  5. 2: cpu:20.0% command: java pid:1527
  6. 3: cpu:19.7% command: firefox pid:3018
  7. 4: cpu:4.6% command:Xorg pid:2114
  8. 5: cpu:3.0% command: cinnamon pid:2835
  9. Memory: MB /% used -Used/Total:3223.6/7879.9MB-top5 active
  10. 1: mem:991.93MB(12.5%) command: plugin-container pid:3066
  11. 2: mem:508.96MB(6.4%) command: java pid:1527
  12. 3: mem:507.86MB(6.4%) command: firefox pid:3018
  13. 4: mem:244.45MB(3.1%) command: chrome pid:7405
  14. 5: mem:211.68MB(2.6%) command: chrome pid:6146

能够在选项 cm 后跟三个平头(在 1-20
之间)设置显示几个进程,上面包车型大巴授命呈现了前 拾 个最消耗 CPU
和内部存款和储蓄器的历程:

  1. $ inxi -t cm10
  2. Processes: CPU:% used -top10 active
  3. 1: cpu:53.4% command: plugin-container pid:3066
  4. 2: cpu:19.8% command: java pid:1527
  5. 3: cpu:19.5% command: firefox pid:3018
  6. 4: cpu:4.5% command:Xorg pid:2114
  7. 5: cpu:3.0% command: cinnamon pid:2835
  8. 6: cpu:2.8% command: chrome pid:7405
  9. 7: cpu:1.1% command: pulseaudio pid:2733
  10. 8: cpu:1.0% command: soffice.bin pid:7799
  11. 9: cpu:0.9% command: chrome pid:5763
  12. 10: cpu:0.5% command: chrome pid:6179
  13. Memory: MB /% used -Used/Total:3163.1/7879.9MB-top10 active
  14. 1: mem:976.82MB(12.3%) command: plugin-container pid:3066
  15. 2: mem:511.70MB(6.4%) command: java pid:1527
  16. 3: mem:466.01MB(5.9%) command: firefox pid:3018
  17. 4: mem:244.40MB(3.1%) command: chrome pid:7405
  18. 5: mem:203.71MB(2.5%) command: chrome pid:6146
  19. 6: mem:199.74MB(2.5%) command: chrome pid:5763
  20. 7: mem:168.30MB(2.1%) command: cinnamon pid:2835
  21. 8: mem:165.51MB(2.1%) command: soffice.bin pid:7799
  22. 9: mem:158.91MB(2.0%) command: chrome pid:6179
  23. 10: mem:151.83MB(1.9%) command: mysqld pid:1259

 

监督网络设施

下边包车型的士通令会列出网卡消息,包含接口新闻、互联网频率、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

 

监督 CPU 温度和管理器电扇转速

能够选择 -s 选项监察和控制
配备了传感器的机器
获取温度微电风扇转速:

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

 

用 Linux 查看天气预告

使用 -w 选项查看当地点的天气景况(即便应用的 API
大概不是很保证),使用 -W <different_location> 设置别的的地区。

  1. $ inxi -w
  2. Weather:Conditions:93 F (34 C)- smoke Time:February20,1:38 PM IST
  3. $ inxi -W Mumbai,India
  4. Weather:Conditions:93 F (34 C)- smoke Time:February20,1:38 PM IST
  5. $ inxi -W Nairobi,Kenya
  6. Weather:Conditions:70 F (21 C)-MostlyCloudyTime:February20,11:08 AM EAT

 

翻开全体的 Linux 客栈新闻

别的,能够运用 -r 选项查看3个 Linux 发行版的仓库新闻:

  1. $ inxi -r
  2. Repos:Active apt sources infile:/etc/apt/sources.list.d/dawidd0811-neofetch-xenial.list
  3. deb http://ppa.launchpad.net/dawidd0811/neofetch/ubuntu xenial main
  4. deb-src http://ppa.launchpad.net/dawidd0811/neofetch/ubuntu xenial main
  5. Active apt sources infile:/etc/apt/sources.list.d/dhor-myway-xenial.list
  6. deb http://ppa.launchpad.net/dhor/myway/ubuntu xenial main
  7. deb-src http://ppa.launchpad.net/dhor/myway/ubuntu xenial main
  8. Active apt sources infile:/etc/apt/sources.list.d/official-package-repositories.list
  9. deb http://packages.linuxmint.com sarah main upstream import backport
  10. deb http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
  11. deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
  12. deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
  13. deb http://security.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
  14. deb http://archive.canonical.com/ubuntu/ xenial partner
  15. Active apt sources infile:/etc/apt/sources.list.d/qbittorrent-team-qbittorrent-stable-xenial.list
  16. deb http://ppa.launchpad.net/qbittorrent-team/qbittorrent-stable/ubuntu xenial main
  17. deb-src http://ppa.launchpad.net/qbittorrent-team/qbittorrent-stable/ubuntu xenial main
  18. Active apt sources infile:/etc/apt/sources.list.d/slgobinath-safeeyes-xenial.list
  19. deb http://ppa.launchpad.net/slgobinath/safeeyes/ubuntu xenial main
  20. deb-src http://ppa.launchpad.net/slgobinath/safeeyes/ubuntu xenial main
  21. Active apt sources infile:/etc/apt/sources.list.d/snwh-pulp-xenial.list
  22. deb http://ppa.launchpad.net/snwh/pulp/ubuntu xenial main
  23. deb-src http://ppa.launchpad.net/snwh/pulp/ubuntu xenial main
  24. Active apt sources infile:/etc/apt/sources.list.d/twodopeshaggy-jarun-xenial.list
  25. deb http://ppa.launchpad.net/twodopeshaggy/jarun/ubuntu xenial main
  26. deb-src http://ppa.launchpad.net/twodopeshaggy/jarun/ubuntu xenial main
  27. Active apt sources infile:/etc/apt/sources.list.d/ubuntu-mozilla-security-ppa-xenial.list
  28. deb http://ppa.launchpad.net/ubuntu-mozilla-security/ppa/ubuntu xenial main
  29. deb-src http://ppa.launchpad.net/ubuntu-mozilla-security/ppa/ubuntu xenial main

上面是查看 Inxi 的安装版本、快捷救助和开辟 man 主页的法子,以及越来越多的
Inxi 使用细节。

  1. $ inxi -v #显示版本信息
  2. $ inxi -h #快速帮助
  3. $ man inxi #打开man主页

浏览 Inxi 的官方 GitHub 主页
查看越多的音讯。

Inxi
是三个功用庞大的得到硬件和系统新闻的命令行工具。那也是自己使用过的最棒的
收获硬件和体系消息的命令行工具
之一。

写下您的褒贬。假设您掌握其他的像 Inxi
那样的工具,我们很喜悦和您共同谈谈。


小编简要介绍:

亚伦 Kili 是八个 Linux 和 F.O.S.S 的纵情的欢喜爱好者,即任的 Linux
系统管理员,web 开荒者,TecMint
网址的专栏撰稿人,他喜爱使用Computer职业,并且愿意分享计算机技能。


via:

作者:Aaron Kili
译者:vim-kakali
校对:wxy

本文由 LCTT
原创编译,Linux中国 荣誉推出

本文永恒更新链接地址:http://www.linuxidc.com/Linux/2017-04/143117.htm

www.ca88.com 2

发表评论

电子邮件地址不会被公开。 必填项已用*标注

相关文章

网站地图xml地图