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