There are several questions and answers here that include the output of inxi
. What can inxi
be used for?
这里有几个问题和答案,包括inxi的输出。什么可以用于?
1 个解决方案
#1
8
inxi is a package available in the Universe repository. The version of inxi
in 18.04.1 is 2.3.56
. It uses Gawk/Bash to examine your system to extract a variety of information that could be helpful in describing your system when seeking help.
inxi是Universe存储库中可用的包。 18.04.1中的inxi版本是2.3.56。它使用Gawk / Bash检查您的系统,以提取各种信息,这些信息可能有助于在寻求帮助时描述您的系统。
From the man page:
从手册页:
inxi is a command line system information script built for console and IRC. It is also used a debugging tool for forum technical support to quickly ascertain users' system configurations and hardware. inxi shows system hardware, CPU, drivers, Xorg, Desktop, Kernel, gcc version(s), Processes, RAM usage, and a wide variety of other useful information.
inxi是为控制台和IRC构建的命令行系统信息脚本。它还用于论坛技术支持的调试工具,以快速确定用户的系统配置和硬件。 inxi显示系统硬件,CPU,驱动程序,Xorg,桌面,内核,gcc版本,进程,RAM使用情况以及各种其他有用信息。
The man
page lists numerous inxi
options but to summarize the uppercase options:
手册页列出了许多inxi选项,但总结了大写选项:
-
-A
= Audio - -A =音频
-
-B
= Battery - -B =电池
-
-C
= CPU - -C = CPU
-
-D
= Hard Disk - -D =硬盘
-
-G
= Graphics - -G =图形
-
-I
= Information about processes, uptime, memory,inxi
version - -I =有关进程,正常运行时间,内存,inxi版本的信息
-
-M
= Machine data such as device (laptop/desktop), motherboard, BIOS, etc - -M =机器数据,如设备(笔记本电脑/台式机),主板,BIOS等
-
-N
= Network information - -N =网络信息
-
-P
= Partition information - -P =分区信息
-
-R
= RAID information - -R = RAID信息
-
-S
= System information such as hostname, kernel, 32/64-bit, desktop environment, distro, etc - -S =系统信息,如主机名,内核,32/64位,桌面环境,发行版等
-
-W
= Weather but this maybe unreliable! - -W =天气,但这可能不可靠!
And here's just a few of the lowercase ones:
这里只是一些小写的:
-
-c0
turns off colored output and is useful for redirecting cleanly (without escape codes) to a text file - -c0关闭彩色输出,可用于将干净(无转义码)重定向到文本文件
-
-c
when used ininxi -t c10
, as an example, would list the top ten processes in terms of CPU usage - -c在inxi -t c10中使用时,作为示例,将根据CPU使用情况列出前十个进程
-
-m
when used ininxi -t m10
, as an example, would list the top ten processes in terms of RAM usage - -m在inxi -t m10中使用时,作为示例,将根据RAM使用情况列出前十个进程
-
-n
shows advanced network information - -n显示高级网络信息
-
-t
as illustrated above, is required to generate a numbered list of processes such as specified by-cN
or-mN
whereN
is the number of processes required - -t如上所示,需要生成编号的进程列表,例如由-cN或-mN指定的进程,其中N是所需的进程数
-
-r
lists repository data including ppas - -r列出包含ppas的存储库数据
-
-s
provides information on temperatures (mobo/cpu/gpu) and fan speeds - -s提供有关温度(mobo / cpu / gpu)和风扇速度的信息
Privacy considerations
Since inxi
output is often posted in public fora, the -z
option filters out data such as MAC addresses. If the hostname (normally generated by -S
), is to be hidden, -! 31
can be used.
隐私注意事项由于inxi输出通常发布在公共论坛中,-z选项会过滤掉MAC地址等数据。如果要隐藏主机名(通常由-S生成), - !可以使用31。
The -x
factor
The following example illustrates the use of -x
, -xx
, and -xxx
and should be self-explanatory:
-x因子以下示例说明了-x,-xx和-xxx的用法,并且应该是不言自明的:
dkb@dkb-xubu:~$
dkb@dkb-xubu:~$ inxi -S
System: Host: dkb-xubu Kernel: 4.15.0-33-generic x86_64 bits: 64 Desktop: Xfce 4.12.3
Distro: Ubuntu 18.04.1 LTS
dkb@dkb-xubu:~$ inxi -Sx
System: Host: dkb-xubu Kernel: 4.15.0-33-generic x86_64 bits: 64 gcc: 7.3.0
Desktop: Xfce 4.12.3 (Gtk 2.24.31) Distro: Ubuntu 18.04.1 LTS
dkb@dkb-xubu:~$ inxi -Sxx
System: Host: dkb-xubu Kernel: 4.15.0-33-generic x86_64 bits: 64 gcc: 7.3.0
Desktop: Xfce 4.12.3 (Gtk 2.24.31) dm: lightdm Distro: Ubuntu 18.04.1 LTS
dkb@dkb-xubu:~$ inxi -Sxxx
System: Host: dkb-xubu Kernel: 4.15.0-33-generic x86_64 bits: 64 gcc: 7.3.0
Desktop: Xfce 4.12.3 (Gtk 2.24.31) info: xfce4-panel dm: lightdm Distro: Ubuntu 18.04.1 LTS
dkb@dkb-xubu:~$
Conclusion: So, what's a convenient command for someone wanting to present information concisely?
结论:那么,对于想要简明地呈现信息的人来说,什么是方便的命令?
- I'd go with
inxi -Fxxxz
for starters where-F
is shorthand for including all uppercase options, plus-s
and-n
- 我会选择inxi -Fxxxz作为初学者,其中-F是包含所有大写选项的简写,加上-s和-n
- For reporting on CPU/RAM, something like
inxi -t cm10
may help - 对于CPU / RAM的报告,像inxi -t cm10这样的东西可能有所帮助
-
inxi -r
would list your repos and ppas and their status - inxi -r会列出你的回购和ppas及其状态
Footnote: a newer, rolling release, Perl-based version of inxi
is available via:
脚注:更新,滚动版本,基于Perl的inxi版本可通过以下方式获得:
sudo wget -O /usr/local/bin/inxi https://github.com/smxi/inxi/raw/master/inxi
sudo chmod +x /usr/local/bin/inxi
after which
之后
sudo inxi -U
will, when run for the first time, install the corresponding man
pages and, on subsequent runs, will install newer versions of inxi
and its man
page. The changelog is very good reading for those interested in the inner workings of inxi
.
sudo inxi -U将在第一次运行时安装相应的手册页,并在随后的运行中安装较新版本的inxi及其手册页。对于那些对inxi内部工作感兴趣的人来说,更改日志非常好。
#1
8
inxi is a package available in the Universe repository. The version of inxi
in 18.04.1 is 2.3.56
. It uses Gawk/Bash to examine your system to extract a variety of information that could be helpful in describing your system when seeking help.
inxi是Universe存储库中可用的包。 18.04.1中的inxi版本是2.3.56。它使用Gawk / Bash检查您的系统,以提取各种信息,这些信息可能有助于在寻求帮助时描述您的系统。
From the man page:
从手册页:
inxi is a command line system information script built for console and IRC. It is also used a debugging tool for forum technical support to quickly ascertain users' system configurations and hardware. inxi shows system hardware, CPU, drivers, Xorg, Desktop, Kernel, gcc version(s), Processes, RAM usage, and a wide variety of other useful information.
inxi是为控制台和IRC构建的命令行系统信息脚本。它还用于论坛技术支持的调试工具,以快速确定用户的系统配置和硬件。 inxi显示系统硬件,CPU,驱动程序,Xorg,桌面,内核,gcc版本,进程,RAM使用情况以及各种其他有用信息。
The man
page lists numerous inxi
options but to summarize the uppercase options:
手册页列出了许多inxi选项,但总结了大写选项:
-
-A
= Audio - -A =音频
-
-B
= Battery - -B =电池
-
-C
= CPU - -C = CPU
-
-D
= Hard Disk - -D =硬盘
-
-G
= Graphics - -G =图形
-
-I
= Information about processes, uptime, memory,inxi
version - -I =有关进程,正常运行时间,内存,inxi版本的信息
-
-M
= Machine data such as device (laptop/desktop), motherboard, BIOS, etc - -M =机器数据,如设备(笔记本电脑/台式机),主板,BIOS等
-
-N
= Network information - -N =网络信息
-
-P
= Partition information - -P =分区信息
-
-R
= RAID information - -R = RAID信息
-
-S
= System information such as hostname, kernel, 32/64-bit, desktop environment, distro, etc - -S =系统信息,如主机名,内核,32/64位,桌面环境,发行版等
-
-W
= Weather but this maybe unreliable! - -W =天气,但这可能不可靠!
And here's just a few of the lowercase ones:
这里只是一些小写的:
-
-c0
turns off colored output and is useful for redirecting cleanly (without escape codes) to a text file - -c0关闭彩色输出,可用于将干净(无转义码)重定向到文本文件
-
-c
when used ininxi -t c10
, as an example, would list the top ten processes in terms of CPU usage - -c在inxi -t c10中使用时,作为示例,将根据CPU使用情况列出前十个进程
-
-m
when used ininxi -t m10
, as an example, would list the top ten processes in terms of RAM usage - -m在inxi -t m10中使用时,作为示例,将根据RAM使用情况列出前十个进程
-
-n
shows advanced network information - -n显示高级网络信息
-
-t
as illustrated above, is required to generate a numbered list of processes such as specified by-cN
or-mN
whereN
is the number of processes required - -t如上所示,需要生成编号的进程列表,例如由-cN或-mN指定的进程,其中N是所需的进程数
-
-r
lists repository data including ppas - -r列出包含ppas的存储库数据
-
-s
provides information on temperatures (mobo/cpu/gpu) and fan speeds - -s提供有关温度(mobo / cpu / gpu)和风扇速度的信息
Privacy considerations
Since inxi
output is often posted in public fora, the -z
option filters out data such as MAC addresses. If the hostname (normally generated by -S
), is to be hidden, -! 31
can be used.
隐私注意事项由于inxi输出通常发布在公共论坛中,-z选项会过滤掉MAC地址等数据。如果要隐藏主机名(通常由-S生成), - !可以使用31。
The -x
factor
The following example illustrates the use of -x
, -xx
, and -xxx
and should be self-explanatory:
-x因子以下示例说明了-x,-xx和-xxx的用法,并且应该是不言自明的:
dkb@dkb-xubu:~$
dkb@dkb-xubu:~$ inxi -S
System: Host: dkb-xubu Kernel: 4.15.0-33-generic x86_64 bits: 64 Desktop: Xfce 4.12.3
Distro: Ubuntu 18.04.1 LTS
dkb@dkb-xubu:~$ inxi -Sx
System: Host: dkb-xubu Kernel: 4.15.0-33-generic x86_64 bits: 64 gcc: 7.3.0
Desktop: Xfce 4.12.3 (Gtk 2.24.31) Distro: Ubuntu 18.04.1 LTS
dkb@dkb-xubu:~$ inxi -Sxx
System: Host: dkb-xubu Kernel: 4.15.0-33-generic x86_64 bits: 64 gcc: 7.3.0
Desktop: Xfce 4.12.3 (Gtk 2.24.31) dm: lightdm Distro: Ubuntu 18.04.1 LTS
dkb@dkb-xubu:~$ inxi -Sxxx
System: Host: dkb-xubu Kernel: 4.15.0-33-generic x86_64 bits: 64 gcc: 7.3.0
Desktop: Xfce 4.12.3 (Gtk 2.24.31) info: xfce4-panel dm: lightdm Distro: Ubuntu 18.04.1 LTS
dkb@dkb-xubu:~$
Conclusion: So, what's a convenient command for someone wanting to present information concisely?
结论:那么,对于想要简明地呈现信息的人来说,什么是方便的命令?
- I'd go with
inxi -Fxxxz
for starters where-F
is shorthand for including all uppercase options, plus-s
and-n
- 我会选择inxi -Fxxxz作为初学者,其中-F是包含所有大写选项的简写,加上-s和-n
- For reporting on CPU/RAM, something like
inxi -t cm10
may help - 对于CPU / RAM的报告,像inxi -t cm10这样的东西可能有所帮助
-
inxi -r
would list your repos and ppas and their status - inxi -r会列出你的回购和ppas及其状态
Footnote: a newer, rolling release, Perl-based version of inxi
is available via:
脚注:更新,滚动版本,基于Perl的inxi版本可通过以下方式获得:
sudo wget -O /usr/local/bin/inxi https://github.com/smxi/inxi/raw/master/inxi
sudo chmod +x /usr/local/bin/inxi
after which
之后
sudo inxi -U
will, when run for the first time, install the corresponding man
pages and, on subsequent runs, will install newer versions of inxi
and its man
page. The changelog is very good reading for those interested in the inner workings of inxi
.
sudo inxi -U将在第一次运行时安装相应的手册页,并在随后的运行中安装较新版本的inxi及其手册页。对于那些对inxi内部工作感兴趣的人来说,更改日志非常好。