ubuntu查看操作系统的位数

ubuntu查看操作系统的位数

$uname -p
x86_64

其他方法:

  • getconf LONG_BIT
  • lscpu
  • 图形界面方式> 系统设置> 详细信息> 操作系统类型
  • 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位拓展 的简写 是x86架构的64位拓展,即64位架构.
x86即32位.i386=Intel 80386。 其实i386通常被用来作为对Intel(英特尔)32位微处理器的统称。

Q2: x86_64怎么来的?
A2: uname是linux的系统命令,通过whatis uname可以知道print system information用于显示系统信息.
-p 选项输出处理器类型,也叫指令集架构.

‘-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查看一个命令的用法?
A3: whatis xxx(命令),info xxx,man xxx

Q4: 什么是操作系统位数\指令集\CPU位数?

操作系统位数的概念是基于CPU位数的,且是依赖于指令集的位数的。一般,操作系统位数有如下的关系:
操作系统的位数 = 所依赖的指令集位数 <= CPU位数。
指令集向操作系统定义了CPU最基本的功能,操作系统调用这些功能让CPU执行某个任务.
CPU位数指的是一个时钟周期内处理器同时寄存和处理的二进制位数。对于CPU位数有如下的关系:
CPU位数 = CPU中寄存器的位数 = CPU一次并行处理的数据宽度。CPU位数越多,则寻址位数越多,处理能力就越强。
来源


查看内核版本
uname -a
查看ubuntu版本
lsb_release -a

你可能感兴趣的:(ubuntu查看操作系统的位数)