Re: If you're using linux can you run this command please?
- Posted by jmduro Aug 29, 2015
- 2494 views
Here is a command anyone can run on his distribution to help find how to correctly identify linuxes:
echo "/etc/issue.net:"$(cat /etc/issue.net); find /etc -maxdepth 1 -type f -name "*-release" -exec grep -H -E "NAME|DISTRIB" {} \;
An here is the result on different OSes.
Linux Mint 17.2 Rafaela /etc/issue.net:Linux Mint 17.2 Rafaela /etc/os-release:NAME="Ubuntu" /etc/os-release:PRETTY_NAME="Ubuntu 14.04.2 LTS" /etc/lsb-release:DISTRIB_ID=LinuxMint /etc/lsb-release:DISTRIB_RELEASE=17.2 /etc/lsb-release:DISTRIB_CODENAME=rafaela /etc/lsb-release:DISTRIB_DESCRIPTION="Linux Mint 17.2 Rafaela" Debian 7 Wheezy /etc/issue.net:Debian GNU/Linux 7 /etc/os-release:PRETTY_NAME="Debian GNU/Linux 7 (wheezy)" /etc/os-release:NAME="Debian GNU/Linux" CentOS 7 /etc/issue.net:\S Kernel \r on an \m /etc/os-release:NAME="CentOS Linux" /etc/os-release:PRETTY_NAME="CentOS Linux 7 (Core)" /etc/os-release:CPE_NAME="cpe:/o:centos:centos:7" Fedora 22 /etc/issue.net:Fedora release 22 (Twenty Two) Kernel \r on an \m (\l) Arch Linux 2014 cat: /etc/issue.net: No such file or directory /etc/issue.net: /etc/os-release:NAME="Arch Linux" /etc/os-release:PRETTY_NAME="Arch Linux" Ubuntu 14.04 /etc/issue.net:Ubuntu 14.04.1 LTS /etc/os-release:NAME="Ubuntu" /etc/os-release:PRETTY_NAME="Ubuntu 14.04.1 LTS" /etc/lsb-release:DISTRIB_ID=Ubuntu /etc/lsb-release:DISTRIB_RELEASE=14.04 /etc/lsb-release:DISTRIB_CODENAME=trusty /etc/lsb-release:DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"