【问题标题】:How to identify the flavour of linux using uname -a or lsb_release -a commands?如何使用 uname -a 或 lsb_release -a 命令识别 linux 的风格?
【发布时间】:2013-09-21 16:49:35
【问题描述】:

我是 unix 新手。我只是想检查一下我的 linux 机器的味道并尝试了以下命令

[root@ab-l13-i05 jetty-license]# uname -a
Linux ab-l13-i05 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux

[root@ab-l13-i05 jetty-license]#  lsb_release -a
LSB Version:    :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: EnterpriseEnterpriseServer
Description:    Enterprise Linux Enterprise Linux Server release 5.3 (Carthage)
Release:        5.3
Codename:       Carthage

那么从上面看,Linux 的风格是“红帽企业 Linux”还是其他?

【问题讨论】:

标签: linux shell unix uname


【解决方案1】:

cat /etc/issue 显示安装的操作系统的名称。

感谢和问候,
阿洛克·萨克

【讨论】:

  • 并非如此。有时确实如此,但也可以由管理员修改。来自man issueThe file /etc/issue is a text file which contains a message or system identification to be printed before the login prompt.
猜你喜欢
  • 2012-10-13
  • 2016-06-24
  • 2014-08-05
  • 2022-01-23
  • 1970-01-01
  • 2015-08-11
  • 1970-01-01
  • 2018-09-04
  • 2021-12-19
相关资源
最近更新 更多