uname 是类 Unix 系统中的命令,用来显示系统信息(如内核名称、主机名、内核版本、硬件架构等)。常见用法如 uname -a 输出尽可能完整的系统概况。
/ˈjuːneɪm/
I ran uname -r to check the kernel version.
我运行了 uname -r 来查看内核版本。
When troubleshooting the server, the admin compared the outputs of uname -a across machines to confirm they were running the same architecture and kernel build.
在排查服务器问题时,管理员对比了多台机器的 uname -a 输出,以确认它们运行的是相同的架构和内核构建版本。
uname 可理解为 Unix name(Unix 名称/系统名)的缩写形式,源于早期 Unix 工具命名习惯:用简短命令名表达功能;该命令后来也被许多类 Unix 系统(如 Linux、BSD 等)沿用,并在 POSIX 相关环境中广泛出现。