系统相关
首页 > 系统相关> > CentOS常用命令

CentOS常用命令

作者:互联网

//2019.8.8刚创建,还比较少,会持续更新

CentOSCommunity Enterprise Operating System)是Linux发行版之一,它是来自于Red Hat Enterprise Linux依照开放源代码规定发布的源代码所编译而成。

这是一个比Ubuntu更稳定的系统。

 

cat /etc/redhat-release   查看CentOS版本

 

查看系统是32位或者64位的方法
  1. getconf LONG_BIT or getconf WORD_BIT
  输入:getconf LONG_BIT
  返回结果:64
  输入:getconf WORD_BIT
  返回结果:32 
  分析:32位的系统中int类型和long类型一般都是4字节,64位的系统中int类型还是4字节的,但是long已变成了8字节inux系统中可用”getconf WORD_BIT”和”getconf        LONG_BIT”获得word和long的位数。64位系统中应该分别得到32和64。
  所以该系统为64为Linux系统。
 

参考文献:

https://zh.wikipedia.org/wiki/CentOS

https://blog.csdn.net/shuaigexiaobo/article/details/78030008

标签:CentOS,32,系统,64,常用命令,getconf,BIT
来源: https://blog.csdn.net/weixin_41036461/article/details/98882720