Zoz*_*zez 3 command-line release-management
我知道该uname -o
命令将显示操作系统。但是当我在 Ubuntu 20.04 上运行它时,我得到了
GNU/Linux
Run Code Online (Sandbox Code Playgroud)
不是Ubuntu
。为什么会这样呢?
Ubuntu 是一个 GNU/Linux 发行版。
man uname
告诉我 -o 选项报告
Run Code Online (Sandbox Code Playgroud)-o, --operating-system print the operating system
对我来说这是一个有效的答案,Ubuntu 显示了谁打包了您正在使用的 GNU/Linux 操作系统。
我通常会用来lsb_release -a
查看我正在使用的 GNU/Linux 的详细信息,对于我的系统,我得到
guiverc@d960-ubu2:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Groovy Gorilla (development branch)
Release: 20.10
Codename: groovy
Run Code Online (Sandbox Code Playgroud)