
Linux 中的 uname(全称为 unix name)命令主要用于展示操作系统相关的信息,比如内核版本、主机名、CPU 类型等内容。
uname 能够查看计算机及其操作系统的各类信息。
<pre class="brush:php;toolbar:false;">uname [-amnrsv][--help][--version]
参数说明如下:
展示完整系统信息:
<pre class="brush:php;toolbar:false;"># uname -a Linux iZbp19byk2t6khuqj437q6Z 4.11.0-14-generic #20~16.04.1-Ubuntu SMP Wed Aug 9 09:06:22 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
查看计算机的处理器架构:
<pre class="brush:php;toolbar:false;"># uname -m x86_64
获取主机名信息:
<pre class="brush:php;toolbar:false;"># uname -n runoob-linux
查看内核发行版本:
<pre class="brush:php;toolbar:false;"># uname -r 4.11.0-14-generic
查询操作系统名称:
<pre class="brush:php;toolbar:false;"># uname -s Linux
查看系统版本及时间戳:
<pre class="brush:php;toolbar:false;"># uname -v #20~16.04.1-Ubuntu SMP Wed Aug 9 09:06:22 UTC 2017
以上就是linux显示系统信息是什么-uname 命令使用与实例的详细内容,更多请关注php中文网其它相关文章!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号