ways to check linux distribution | /etc/*rel* | "dmesg | head -1" | cat /etc/issue
1)
root@ubuntu:/home/awsc1/linuxlessons/linuxscripts# dmesg | head -1
[ 0.000000] Linux version 4.15.0-36-generic (buildd@lgw01-amd64-031) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #39-Ubuntu SMP Mon Sep 24 16:19:09 UTC 2018 (Ubuntu 4.15.0-36.39-generic 4.15.18)
root@ubuntu:/home/awsc1/linuxlessons/linuxscripts#
root@ubuntu:/home/awsc1/linuxlessons/linuxscripts# dmesg | head -1
[ 0.000000] Linux version 4.15.0-36-generic (buildd@lgw01-amd64-031) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #39-Ubuntu SMP Mon Sep 24 16:19:09 UTC 2018 (Ubuntu 4.15.0-36.39-generic 4.15.18)
root@ubuntu:/home/awsc1/linuxlessons/linuxscripts#
2)
root@ubuntu:/home/awsc1/linuxlessons/linuxscripts# ll /etc/*rel*
-rw-r--r-- 1 root root 105 Jul 23 12:40 /etc/lsb-release
lrwxrwxrwx 1 root root 21 Aug 20 06:44 /etc/os-release -> ../usr/lib/os-release
3)
cat /etc/issue
Ubuntu 18.04.1 LTS \n \l
cat /etc/issue
Ubuntu 18.04.1 LTS \n \l
Comments
Post a Comment