View Linux version, kernel version, number of system bits, GCC version under Ubuntu

Source: Internet
Author: User

1. View Linux Versions
[Email protected]:~ $cat/etc/issue
Ubuntu 11.04 \ \l

2. View the kernel version
1) [Email protected]:~$ 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 Mar 5 18:10:14 UTC 2012
2) uname command
[Email protected]:~$ uname-a
Linux ubuntu 2.6.38-13-generic #57-ubuntu SMP Mon Mar 5 18:10:14 UTC-i686 i686 i386 Gnu/linux

[ -------------------------------------------------------------------------------
-A,--all print all information, in the following order, view all information
Except Omit-p and-i if unknown:
-S,--kernel-name print the kernel name view kernel name
-N,--nodename print the network node hostname
-R,--kernel-release print the kernel release view kernel release version
-V,--kernel-version print the kernel version view kernel versions
-M,--machine print the machine hardware name
-P,--processor print the processor type or "Unknown"
-I,--hardware-platform print the hardware platform or "unknown"
-O,--operating-system print the operating system view operating system
--help Display this Help and exit
--version output version information and exit
--------------------------------------------------------------------------------------]

3. View the number of system bits
1) [Email protected]:~$ getconf word_bit
32
2) [Email protected]:~$ file/bin/bash
/bin/bash:elf 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for Gnu/linux 2.6.15, stripped

4. View the GCC version
[Email protected]:~$ gcc--version
GCC (Ubuntu/linaro 4.5.2-8ubuntu4) 4.5.2

View Linux version, kernel version, number of system bits, GCC version under Ubuntu

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.