查看linux的版本

时间:2023-03-09 07:29:54
查看linux的版本

1. uname -a

~$ uname -a
Linux lubuntu-Vostro-A840 3.19.0-73-generic #81-Ubuntu SMP Tue Oct 18 16:02:31 UTC 2016 i686 i686 i686 GNU/Linux

2. cat /proc/version

:~$ cat /proc/version
Linux version 3.19.0-73-generic (buildd@lgw01-54) (gcc version 4.9.2 (Ubuntu 4.9.2-10ubuntu13) ) #81-Ubuntu SMP Tue Oct 18 16:02:31 UTC 2016

3. cat /etc/os-release

:~$ cat /etc/os-release
NAME="Ubuntu"
VERSION="15.04 (Vivid Vervet)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 15.04"
VERSION_ID="15.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"