如何知道我使用的是哪个 Linux 发行版?
uname -a 给
Linux xxxxxx.net 2.6.9-42.0.3.EL.wh1smp #1 SMP Fri Aug 14 15:48:17 MDT 2009 i686 i686 i386 GNU/Linux
我怎么知道这是 Ubuntu/Debian/Fedora 还是 Redhat?
我是/etc/init.d/serviced restart用来重启服务的,好像不是Redhat家族的
[itf][~]$ cat /etc/issue
cat: /etc/issue: No such file or directory
[itf][~]$ cat /etc/issue.net
cat: /etc/issue.net: No such file or directory
[itf][~]$ lsb_release -a
-sh: lsb_release: command not found
[itf][~]$ cat /etc/*-release
cat: /etc/*-release: No such file or directory
[itf][~]$ cat /etc/*-version
cat: /etc/*-version: No such file or directory
[itf][~]$ cat /etc/*release …Run Code Online (Sandbox Code Playgroud)