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,
- Linux-Linux Kernel name
- 2.6.32-5-amd64-Kernel version number
- 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