InterviewSolution
Saved Bookmarks
| 1. |
How to check os version in Linux command line ? |
|
Answer» Type any one of the following command to find os name and version in Linux: CAT /etc/os-release lsb_release -a hostnamectlExample – % hostnamectl Static hostname: WDFL41000139D ICON name: computer-vm CHASSIS: vm Machine ID: bfc98d9a56631ccde8f8578d58347195 Boot ID: dc39baafe82849b39413507cfd395b54 Virtualization: microsoft Operating System: SUSE Linux Enterprise Server 12 SP2 CPE OS Name: cpe:/o:suse:sles:12:sp2 Kernel: Linux 4.4.121-92.98-default Architecture: x86-64 %lsb_release -a LSB Version: n/a DISTRIBUTOR ID: SUSE Description: SUSE Linux Enterprise Server 12 SP2 Release: 12.2 Codename: n/aAlso type the following command to find Linux kernel version: uname -r |
|