linux - 如何知道我使用的是哪个 Linux 发行版?

标签 linux version

<分区>

移至https://superuser.com/questions/80251/how-to-know-which-linux-distribution-im-using

如何知道我使用的是哪个 Linux 发行版?

uname -a 给出 Linux xxxxxx.net 2.6.9-42.0.3.EL.wh1smp #1 SMP 8 月 14 日星期五 15:48:17 MDT 2009 i686 i686 i386 GNU/Linux 我怎么知道这是 Ubuntu/Debian/Fedora 还是 Redhat?

我用/etc/init.d/serviced restart 来重启服务,好像不是Redhat系列

更新:

[~]$ cat /etc/issue
cat: /etc/issue: No such file or directory
[~]$ cat /etc/issue.net
cat: /etc/issue.net: No such file or directory
[~]$ lsb_release -a
-sh: lsb_release: command not found
[~]$ cat /etc/*-release
cat: /etc/*-release: No such file or directory
[~]$ cat /etc/*-version
cat: /etc/*-version: No such file or directory
[~]$ cat /etc/*release
cat: /etc/*release: No such file or directory
[~]$ cat /etc/*_release
cat: /etc/*_release: No such file or directory
[~]$ cat /etc/*version
cat: /etc/*version: No such file or directory
[~]$

最佳答案

试试这个:

cat /etc/*-release

你也可以尝试/etc/*-version

关于linux - 如何知道我使用的是哪个 Linux 发行版?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1864734/

相关文章:

hibernate - hibernate stalestateException 的最佳更新策略

linux - tcsh 脚本 - 不会使用 cygwin 输出简单的 ls -l 命令

grails - 填充表的“version”锁定值

mysql - 对于某些旧版本的 MySQL, `<> ##` 是否与 `NULL` 匹配

file - 较大的 .exe 文件无法删除自身,而较小的 .exe 文件可以使用相同的代码(Delphi)

git - 如何让 Git 显示文件的版本历史

linux - console.log 输出在哪里?

linux - 别名未出现在 bash 历史记录中

linux - 如何安全地停止生产中的程序

python - apt-get 安装不同的 python 版本