1. uname-a view OS details 2. file/bin/ls: Display the System program information, and you can see how many digits 3. getconfLONG_BIT4. view the OS version cat/proc/version5. view the detailed OS parameter information getconf-a =-= 1. uname-a view OS details
2. file/bin/ls
How many digits can be seen by displaying system program information
3. obtain the machine font length
Getconf LONG_BIT
4. view the OS version
Cat/proc/version
5. View detailed OS parameter information
Getconf-
=- =-= -- =
PC server X86 series
I386--I686 is 32-bit
X86_64 is 64-bit
1. uname-a view OS details
2. file/bin/ls
How many digits can be seen by displaying system program information
3. obtain the machine font length
Getconf LONG_BIT
Getconf WORD_BIT
4. view the OS version
Cat/proc/version
=- =-= -- =
How to view the number of digits in a linux system
1. check whether the/lib64 directory is available. The 64-bit system has two directories:/lib64 and/lib. the 32-bit system has only one directory.
2. getconf LONG_BIT
(In 32-bit systems, the int and long types are generally 4 bytes. in 64-bit systems, the int type is 4 bytes, however, long has been changed to "getconf WORD_BIT" and
"Getconf LONG_BIT" gets the number of digits of word and long. In a 64-bit system, the values are 32 and 64 respectively .)
3. view the binary information of the basic program in file/bin/ls.
Tata @ ubuntu :~ $ File/bin/ls
/Bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped
=- =-= -- =
1. run the following command to view the kernel version:
1) [root @ q1test01 ~] # Cat/proc/version
Linux version 2.6.9-22. ELsmp (bhcompile@crowe.devel.redhat.com) (gcc version 3.4.4 20050721
3.4.4-2) #1 SMP Mon Sep 19 18:00:54 EDT 2005
2) [root @ q1test01 ~] # Uname-
Linux q1test01 2.6.9-22. ELsmp #1 SMP Mon Sep 19 18:00:54 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux
=- =-= -- =
View the linux version:
1) log on to the server and execute lsb_release-a to list all version information, for example:
[Root@3.5.5Biz-46 ~] # [Root @ q1test01 ~] # Lsb_release-
LSB Version: core-3.0-amd64: core-3.0-ia32: core-3.0-noarch: graphics-3.0-
Ia32: graphics-3.0-noarch
Distributor ID: RedHatEnterpriseAS
Description: Red Hat Enterprise Linux AS release 4 (Nahant Update 2)
Release: 4
Codename: NahantUpdate2
Note: this command applies to all linux releases, including Redhat, SuSE, and Debian.