如何看CentOS系统是32位还是64位的?
如何看CentOS系统是32位还是64位的?
32位系统:
<code class="hljs d has-numbering" style="display: block; padding: 0px; color: inherit; box-sizing: border-box; font-family: 'Source Code Pro',monospace;font-size:undefined; white-space: pre; border-radius: 0px; word-wrap: normal; background: transparent;">[root<span class="hljs-keyword" style="color: rgb(0,136); box-sizing: border-box;">@localhost</span> ~]# file /sbin/init /sbin/init: ELF <span class="hljs-number" style="color: rgb(0,102,102); box-sizing: border-box;">32</span>-bit LSB <span class="hljs-keyword" style="color: rgb(0,136); box-sizing: border-box;">shared</span> object,Intel <span class="hljs-number" style="color: rgb(0,102); box-sizing: border-box;">80386</span>,<span class="hljs-keyword" style="color: rgb(0,136); box-sizing: border-box;">version</span> <span class="hljs-number" style="color: rgb(0,102); box-sizing: border-box;">1</span> (SYSV),dynamically linked (uses <span class="hljs-keyword" style="color: rgb(0,136); box-sizing: border-box;">shared</span> libs),136); box-sizing: border-box;">for</span> GNU/Linux <span class="hljs-number" style="color: rgb(0,102); box-sizing: border-box;">2.6</span>.18,stripped [root<span class="hljs-keyword" style="color: rgb(0,136); box-sizing: border-box;">@localhost</span> ~]# file /bin/ls /bin/ls: ELF <span class="hljs-number" style="color: rgb(0,102); box-sizing: border-box;">32</span>-bit LSB executable,stripped</code><ul class="pre-numbering" style="box-sizing: border-box; position: absolute; width: 50px; top: 0px; left: 0px; margin: 0px; padding: 6px 0px 40px; border-right-width: 1px; border-right-style: solid; border-right-color: rgb(221,221,221); list-style: none; text-align: right; background-color: rgb(238,238,238);"><li style="box-sizing: border-box; padding: 0px 5px;">1</li><li style="box-sizing: border-box; padding: 0px 5px;">2</li><li style="box-sizing: border-box; padding: 0px 5px;">3</li><li style="box-sizing: border-box; padding: 0px 5px;">4</li></ul><div class="save_code tracking-ad" data-mod="popu_249" style="box-sizing: border-box; position: absolute; height: 60px; right: 30px; top: 5px; color: rgb(255,255,255); cursor: pointer; z-index: 2;"><a target=_blank target="_blank" style="box-sizing: border-box; color: rgb(12,137,207);"><img src="http://static.blog.csdn.net/images/save_snippets.png" style="border: none; box-sizing: border-box;" alt="" /></a></div><ul class="pre-numbering" style="box-sizing: border-box; position: absolute; width: 50px; top: 0px; left: 0px; margin: 0px; padding: 6px 0px 40px; border-right-width: 1px; border-right-style: solid; border-right-color: rgb(221,238);"><li style="box-sizing: border-box; padding: 0px 5px;">1</li><li style="box-sizing: border-box; padding: 0px 5px;">2</li><li style="box-sizing: border-box; padding: 0px 5px;">3</li><li style="box-sizing: border-box; padding: 0px 5px;">4</li></ul>
64位系统: