The version of Linux (distro) you are running can be obtained from /etc directory. Eenter the following command at the shell prompt:
In your home folder:
Option 1:cat /etc/*-release file.
Option 2:
cat lsb_release
Option 3:
cat /proc/version
Option 4:
uname -a comment
Results in Ubuntu (Debian) Linux
OPTION 1:
/cat /etc/*-release returns
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.4 LTS"
NAME="Ubuntu"
VERSION="16.04.4 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.4 LTS"
VERSION_ID="16.04"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
OPTION 2:
cat /etc/lsb_release returns
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.4 LTS"
OPTION 3:
cat /proc/version returns
Linux version 4.13.0-36-generic (buildd@lgw01-amd64-033) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9)) #40~16.04.1-Ubuntu SMP (date)
OPTION 4:
uname -a
Linux version 4.13.0-36-generic (buildd@lgw01-amd64-033) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9)) #40~16.04.1-Ubuntu SMP Fri (date)
Hope it helps.
No comments:
Post a Comment