View CentOS version information

(1) View the installed CentOS version information

1.cat /etc/issue View version

cat The abbreviation concatenate cat command can be used to display and merge files.

CentOS release 6.6 (Final)

CentOS release 6.6

etc. The initial English name of etc is etcetera, and later everyone is more accustomed to it as Editable Text Configuration . ETC is the system configuration file directory, which contains system startup scripts, startup configuration files, user login configuration files, network configuration files, httpd configuration files, IPSec configuration files and other files.

2. cat /etc/redhat-release View CentOS version

3. cat /proc/version

proc is the abbreviation of process, which stores files related to the kernel.

Display result:
Linux version 2.6.32-504.12.2.el6.x86_64 ([email protected]) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC )) #1 SMP Wed Mar 11 22:03:14 UTC 2015

We can see that the system uses Linux 2.6.32 kernel 64 as the operating system. GCC is a collection of GUN compilers, using version 4.4.5.

4. uname -a is displayed as follows

Linux host 192-168-14-166
Linux version 2.6 .32-504.12.2.el6.x86_64 64bit

5 uname -r

Display result: 2.6.32-504.12.2.el6. x86_64

Analysis result: Linux version 2.6.32-504.12.2.el6.x86_64 64-bit

(2) Check if the system is 32 Bit or 64-bit method

1. getconf LONG_BIT or getconf WORD_BIT
Input: getconf LONG_BIT
Return result: 64
Input: getconf WORD_BIT
Return result: 32
Analysis: In the 32-bit system, the int type and the long type are generally 4 bytes, and the int type in the 64-bit system is still 4 bytes, but the long has become 8-byte inux In the system, “getconf WORD_BIT” and “getconf LONG_BIT” can be used to obtain the digits of word and long. On a 64-bit system, you should get 32 ​​and 64 respectively.
So the system is 64 for Linux system.

2. file /bin/ls /bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6. 18, stripped

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 4911 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.