ubuntu查看操作系統(tǒng)的位數(shù)
$uname -p
x86_64
其他方法:
getconf LONG_BITlscpu- 圖形界面方式> 系統(tǒng)設(shè)置> 詳細(xì)信息> 操作系統(tǒng)類(lèi)型
- neofetch
-- sudo apt install neofetch
-- GitHub - dylanaraps/neofetch: ??? A command-line system information tool written in bash 3.2+
Q1: x86_64表示了什么?
A1: x86_64 = x64 = amd64 即英文詞64-bit extended,64位拓展 的簡(jiǎn)寫(xiě) 是x86架構(gòu)的64位拓展,即64位架構(gòu).
x86即32位.i386=Intel 80386。 其實(shí)i386通常被用來(lái)作為對(duì)Intel(英特爾)32位微處理器的統(tǒng)稱(chēng)。
Q2: x86_64怎么來(lái)的?
A2: uname是linux的系統(tǒng)命令,通過(guò)whatis uname可以知道print system information用于顯示系統(tǒng)信息.
-p 選項(xiàng)輸出處理器類(lèi)型,也叫指令集架構(gòu).
‘-p’
‘--processor’
Print the processor type (sometimes called the instruction set
architecture or ISA). Print ‘unknown’ if this information is not
available. Note this is non-portable (even across GNU/Linux
distributions).
Q3: linux查看一個(gè)命令的用法?
A3: whatis xxx(命令),info xxx,man xxx
Q4: 什么是操作系統(tǒng)位數(shù)\指令集\CPU位數(shù)?
操作系統(tǒng)位數(shù)的概念是基于CPU位數(shù)的,且是依賴(lài)于指令集的位數(shù)的。一般,操作系統(tǒng)位數(shù)有如下的關(guān)系:
操作系統(tǒng)的位數(shù) = 所依賴(lài)的指令集位數(shù) <= CPU位數(shù)。
指令集向操作系統(tǒng)定義了CPU最基本的功能,操作系統(tǒng)調(diào)用這些功能讓CPU執(zhí)行某個(gè)任務(wù).
CPU位數(shù)指的是一個(gè)時(shí)鐘周期內(nèi)處理器同時(shí)寄存和處理的二進(jìn)制位數(shù)。對(duì)于CPU位數(shù)有如下的關(guān)系:
CPU位數(shù) = CPU中寄存器的位數(shù) = CPU一次并行處理的數(shù)據(jù)寬度。CPU位數(shù)越多,則尋址位數(shù)越多,處理能力就越強(qiáng)。
來(lái)源
查看內(nèi)核版本
uname -a
查看ubuntu版本
lsb_release -a