View kernel version, GCC version, operating system number and other parameters under Linux

Source: Internet
Author: User

1. View Linux Versions

Cat/etc/issue
Ubuntu 11.04 \ \l

2. View the kernel version

1)Cat/proc/version
Linux version 2.6.38-13-generic ([email protected]) (GCC version 4.5.2 (Ubuntu/linaro 4.5.2-8ubuntu4)) #57-ubuntu SMP Mon M AR 5 18:10:14 UTC 2012

2) uname command

Uname-a
Linux ubuntu 2.6.38-13-generic#57-ubuntu SMP Mon Mar 5 18:10:14 UTC i686 i686 i386gnu/linux

[-------------------------------------------------------------------------------
-A,--all print all information, inthe following order, view all information
except omit-p and-i ifunknown:
-s,--kernel-name Print the Kernelname view kernel name
-r,--kernel-release Print the Kernelrelease view kernel release version
-v,--kernel-version Print The Kernelversion view kernel version
-p,--processor print the ProcessorType or "unknown"
-i,--hardware-platform Print Thehardware platform or "unknown"
-o,--operating-system print theoperating system View operating system
--help Display this help andexit
-- Version output version Informationand exit

--------------------------------------------------------------------------------------]3. View the number of system bits

1) Getconfword_bit
32

2)File/bin/bash
/bin/bash:elf 32-bit LSB Executable,intel 80386, version 1 (SYSV), dynamically linked (uses sharedlibs), for Gnu/linux 2. 6.15, stripped

4. View the GCC version

Gcc--version
GCC (Ubuntu/linaro 4.5.2-8ubuntu4) 4.5.2

View kernel version, GCC version, operating system number and other parameters under Linux

Related Article

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.