Home linux How to View Linux version in Terminal?

How to View Linux version in Terminal?

Author

Date

Category

How to see the version of Linux in the terminal?


Answer 1, Authority 100%

Find out, 32 or 64 Bit:

uname -m
$ uname -m
x86_64.

More options Find out the version of Linux :

Cat / etc / isse
$ cat / etc / isse
Ubuntu 14.04.4 LTS \ N \ L
lsb_release -a
$ lsb_release -a
No LSB Modules Are Available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
CodeName: Trusty.

View version of Linux kernel:

uname -r
$ uname -r
3.13.0-87-Generic

Answer 2, Authority 132%

version of the program linux , which is currently running, can be viewed, for example, a command (a sample of output (sample):

$ uname -r
3.13.0-57-Generic

or even:

$ cat / proc / version
Linux Version 3.13.0-57-Generic (BUILDD @ Brownie) (GCC Version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)) # 95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015

The version of the distribution can be viewed, for example, a command (a pre-output example is also provided:

$ lsb_release -r
Release: 14.04

More information – with the -a option (sample output is also available):

$ lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
CodeName: Trusty.

This is if the LSB_RELEASE program is installed. Unfortunately, it is still not in all distributions it is set by default. Then it is worth using the command (a sample sample is also given):

$ cat / etc / * release *
Distrib_id = Ubuntu.
Distrib_release = 14.04
Distrib_codename = trusty
Distrib_Description = "Ubuntu 14.04.4 LTS"
Name = "ubuntu"
Version = "14.04.4 LTS, TRUSTY TAHR"
Id = ubuntu.
ID_LIKE = Debian.
Pretty_name = "Ubuntu 14.04.4 LTS"
Version_ID = "14.04"
Home_url = "http://www.ubuntu.com/"
Support_URL = "http://help.ubuntu.com/"
Bug_Report_URL = "http://bugs.launchpad.net/ubuntu/"

Answer 3, Authority 21%

For example, as follows (may not work in old versions):

lsb_release -a

Answer 4, Authority 16%

You can try to execute such a command:

cat / etc / * - release

Answer 5, Authority 16%

$ python -mplatform
Linux-4.2.0-36-Generic-X86_64-WITH-UBUNTU-16.04-Xenial

Answer 6, Authority 5%

There is also a console utility ScreenFetch :

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions