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