首页 存档 技术 查看内容

Inxi:一个功能强大的获取 Linux 系统信息的命令行工具

2018-3-30 13:00 |来自: 互联网 402 0

摘要: Inxi 是一个功能强大的获取硬件和系统信息的命令行工具。这也是我使用过的最好的 获取硬件和系统信息的命令行工具 之一。-- Aaron Kili 本文导航 -在 Linux 系统上安装 Inxi03% -Inxi 工具的基本用法34% -获取 Linu ...

Inxi 是一个功能强大的获取硬件和系统信息的命令行工具。这也是我使用过的最好的 获取硬件和系统信息的命令行工具 之一。
-- Aaron Kili


本文导航


Inxi 最初是为控制台和 IRC(网络中继聊天)开发的一个强大且优秀的命令行系统信息脚本。可以使用它获取用户的硬件和系统信息,它也用于调试或者社区技术支持工具。

使用 Inxi 可以很容易的获取所有的硬件信息:硬盘、声卡、显卡、网卡、CPU 和 RAM 等。同时也能够获取大量的操作系统信息,比如硬件驱动、Xorg 、桌面环境、内核、GCC 版本,进程,开机时间和内存等信息。

运行在命令行和 IRC 上的 Inxi 输出略有不同,IRC 上会有一些可供用户使用的默认过滤器和颜色选项。支持的 IRC 客户端有:禁用词语X、Gaim/Pidgin、ircII、Irssi、 Konversation、 Kopete、 KSirc、 KVIrc、 Weechat 和 Xchat 以及其它的一些客户端,它们具有展示内置或外部 Inxi 输出的能力。

在 Linux 系统上安装 Inxi

大多数主流 Linux 发行版的仓库中都有 Inxi ,包括大多数 BSD 系统。

  1. $ sudo apt-get install inxi [On Debian/Ubuntu/Linux Mint]

  2. $ sudo yum install inxi [On CentOs/RHEL/Fedora]

  3. $ sudo dnf install inxi [On Fedora 22 ]

在使用 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. Python is 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. Test One: Required System Directories (Linux Only).

  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. Test Two: Required Core Applications.

  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. Test Three: Script Recommends for Graphics Features.

  31. NOTE: If you do not use X these do not 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. Test Four: Script Recommends for Remaining Features.

  40. If one of these applications is missing, inxi will have incomplete output:

  41. dig (info: -i first wlan ip default test)................................... /usr/bin/dig

  42. dmidecode (info: -M if no 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. 声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系 [邮箱地址] 删除


路过

雷人

握手

鲜花

鸡蛋

相关分类

返回顶部