How to view Linux distribution

  

$ uname -a

Linux MikroTik 2.6.35-smp #2 SMP Thu Apr 25 16:00:00 EEST 2013 i686 GNU/Linux

- The a option means to view all the information, but as you can see from the output information, the version information that uname sees is only the kernel version information, not the version information of the distribution


in RedHat In the system, there is an /etc/redhat-release file that saves the version information of the distribution

$ cat /etc/redhat-release

Red Hat Enterprise Linux Server release 5.5 (Tikanga )


There is a more general method, /etc/issue file

issue file is the information and identification file before login, which stores the version information of the distribution.

$cat /etc/issue

Debian GNU/Linux 6.0 \ \\l

Copyright © Windows knowledge All Rights Reserved