Linux View system version and system bit number

Source: Internet
Author: User

1. uname-a
You'll view kernel name, network node hostname, kernel release, kernel version, machine hardware name, processor type, Hardwa Re platform, operating system

2. Cat/proc/version

His file won't show you the name of the actual OS release, but would instead give you specifics about the version of Lin UX kernel used in your distribution, and confirm the version of a GCC compiler used to build it.
If you are cat the/proc/version file, this is the what you ' re going to see (I ' m using a CentOS 5.4 system for this):
Cat/proc/version

Linux version 2.6.18-164.11.1.el5 ([email protected]) (GCC version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Wed Jan 20 07 : 39:04 EST 2010
In this output, you get to see the following information:
Exact version of the Linux kernel used in your os:linux version 2.6.18-164.11.1.el5
Name of the user who compiled your kernel, and also a host name where it happened: [Email protected]
Version of the GCC compiler used for building the KERNEL:GCC version 4.1.2 20080704
Type of the kernel–smp here means symmetric multiprocessing kernel, the one. Supports systems with multiple CPUs or Multiple CPU Cores
Date and time when the kernel is built:wed Jan 07:39:04 EST 2010

3. Cat/etc/issue

Catting/proc/version or uname would only show you information that have been set for compile into the kernel. Only the major distributions would put some special marks for identification, in the form such as custom kernel version tag or GCC version string. Necessarily true especially if the kernel is a self compiled kernel.

For example, this is the/proc/version from my Slackware server:

4. Lsb_release-a

This command applies to all Linux, including Redhat, SuSE, Debian, and other distributions, but cannot view the number of system bits.
5. If you know what your operating system is, but are unsure of the exact version, here are a few ways you can use

Different Unix-like operating systems store information differently depending on their release version

RedHat Linux

bash-3.1$ Cat/etc/redhat-release
Red Hat Enterprise Linux Client Release 5 (Tikanga)
Ubuntu Linux

bash-3.1$ cat/etc/issue
Ubuntu 6.10 N L
SUSE Linux

~> Cat/etc/suse-release
SUSE Linux Enterprise Desktop ten (x86_64)
VERSION = 10
Sun Solaris

bash-2.03$ Cat/etc/release
Solaris 8 2/04 s28s_hw4wos_05a SPARC
Copyright 2004 Sun Microsystems, Inc. All rights Reserved.
Assembled January 2004

Http://blog.sina.com.cn/s/blog_4fd984420100p4qo.html

Linux View system version and System bits (RPM)

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.