解释 uname 输出:32 位还是 64 位?

use*_*519 2 xubuntu command-line kernel playonlinux

我使用uname命令并获得:

Linux rufusruffcutt 3.2.0-35-generic-pae #55-Ubuntu SMP Wed Dec 5 18:04:39 UTC 2012 i686 i686 i386 GNU/Linux
Run Code Online (Sandbox Code Playgroud)

这是什么意思,我如何判断这是 32 位还是 64 位内核版本?

Rma*_*ano 5

来自man uname

-a, --all 打印所有信息,按以下顺序,除了 -p 和 -i 如果未知,则省略:

   -s, --kernel-name
          print the kernel name

   -n, --nodename
          print the network node hostname

   -r, --kernel-release
          print the kernel release

   -v, --kernel-version
          print the kernel version

   -m, --machine
          print the machine hardware name

   -p, --processor
          print the processor type or "unknown"

   -i, --hardware-platform
          print the hardware platform or "unknown"

   -o, --operating-system
          print the operating system
Run Code Online (Sandbox Code Playgroud)

所以在你的情况下:

Linux       rufusruffcutt 3.2.0-35-generic-pae #55-Ubuntu SMP Wed Dec 5 18:04:39 UTC 2012 i686 i686 i386 GNU/Linux      
Run Code Online (Sandbox Code Playgroud)

所以你有一个机器硬件 i686,一个处理器类型i686,一个硬件平台i386

在 Ubuntu 版本中,i386是 32 位版本;在 64 位系统中,它们将是x86_64.

使用uname -i应该只为您提供硬件平台。