How to use shell to view my Linux system release version and system name

Source: Internet
Author: User
How can I use shell to view the release time and system name of my Linux system? You can use CommandTo view the Linux name and release time:

A]/Etc/*-releaseFile.

B]Lsb_releaseCommand.

C]/Proc/versionFile.

Method #1:/etc/*-release file

View your version:
$ cat /etc/*-release
The following is an output example of RHEL v5.x server:

Red Hat Enterprise Linux Server release 5 (Tikanga)
Sample output from Ubuntu Linux v7.10:
DISTRIB_ID=UbuntuDISTRIB_RELEASE=7.10DISTRIB_CODENAME=gutsyDISTRIB_DESCRIPTION="Ubuntu 7.10"
Method #2: Use the lsb_release Command To view the Linux Name and release Version. Command To Find Out Linux Distribution Name/Version

Lsb_release displays the Linux release version and the Linux Standard Base system)
$ lsb_release -a
Output example:

No LSB modules are available.Distributor ID:DebianDescription:Debian GNU/Linux 6.0.1 (squeeze)Release:6.0.1Codename:squeeze
How can I find my Linux Kernel version?

Run the following command:
$ uname -a
Or
$ uname -mrs
Output:

Linux 2.6.32-5-amd64 x86_64

Here,

  1. Linux-Linux Kernel name
  2. 2.6.32-5-amd64-Kernel version number
  3. X86_64-Machine hardware (64-bit)
Reverse query/proc/version

The following command can also view the kernel version and gcc version:
$ cat /proc/version
Example

Linux version 3.2.0-0.bpo.1-amd64 (Debian 3.2.4-1~bpo60+1) (ben@decadent.org.uk) (gcc version 4.4.5 (Debian 4.4.5-8) ) #1 SMP Sat Feb 11 08:41:32 UTC 2012

Video 01: Find The Linux Kernel Version Command Tutorial Take a look at the following

GIF Animation: Find the release version and name of Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.