centos系统版本的查看方法
1
1 [root@aliyun ~]# lsb_release -a 2 lsb version: :core-4.1-amd64:core-4.1-noarch 3 distributor id: centos 4 description: centos linux release 7.6.1810 (core) 5 release: 7.6.1810 6 codename: core
2
1 [root@aliyun ~]# cat /etc/redhat-release 2 centos linux release 7.6.1810 (core)
1
1 [root@aliyun ~]# uname -a 2 linux aliyun 3.10.0-957.1.3.el7.x86_64 #1 smp thu nov 29 14:49:43 utc 2018 x86_64 x86_64 x86_64 gnu/linux
2
1 [root@aliyun ~]# cat /proc/version 2 linux version 3.10.0-957.1.3.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (red hat 4.8.5-36) (gcc) ) #1 smp thu nov 29 14:49:43 utc 2018
1
1 [root@aliyun ~]# getconf long_bit 2 64
32位的系统中int类型和long类型一般都是4字节,64位的系统中int类型还是4字节的,但是long已变成了8字节linux系统中可用”getconf word_bit和getconf long_bit获得
word和long的位数。
64位系统中应该分别得到word位数32和long位数64
因此该系统为64位的系统
2
1 [root@aliyun ~]# uname -a 2 linux aliyun 3.10.0-957.1.3.el7.x86_64 #1 smp thu nov 29 14:49:43 utc 2018 x86_64 x86_64 x86_64 gnu/linux
x86_64 系统64位
i386 i686 系统32位
如对本文有疑问, 点击进行留言回复!!
linux下文本编辑器vim的使用方法(复制、粘贴、替换、行号、撤销、多文件操作)
网友评论