如何检查您Linux系统是32位还是64位

tell-if-32-or-64-bit-cpu-on-linux

Most modern computers are capable of running a 64-bit operating system. But just because a computer supports it doesn’t mean that’s what’s running. Here’s how to tell whether you’re running a 32-bit or 64-bit version of Linux.

大多数现代计算机都能够运行64位操作系统。 但是仅仅因为计算机支持它并不意味着它正在运行。 这是判断您运行的是32位还是64位版本Linux的方法。

For the most part, we recommend running a 64-bit version of Linux. You’ll get better performance and security. The only times you might need to use a 32-bit version instead is if you’re still running a 32-bit processor, or in the very unlikely event you proprietary hardware drivers only available in 32-bit form (though, that’s typically more a Windows problem). If you’re ever installing software and are asked to choose between a 32-bit and 64-bit version, here are two ways you can find out what flavor of Linux you’re running.

在大多数情况下, 我们建议运行64位版本Linux 。 您将获得更好的性能和安全性。 唯一可能需要使用32位版本的情况是,如果您仍在运行32位处理器,或者在极不可能的情况下,您专有的硬件驱动程序仅以32位形式提供(尽管通常情况下, Windows问题)。 如果您要安装软件,并被要求在32位和64位版本之间进行选择,则可以通过以下两种方法来确定所运行Linux风格。

选项一:在终端上使用lscpu命令 (Option One: Use the lscpu Command at the Terminal)

To test whether your Linux computer has a 32-bit or 64-bit CPU and to see what version of Linux is installed, open your terminal, type the following command at the prompt, and then hit Enter:

要测试您Linux计算机是否具有32位或64位CPU并查看已安装Linux版本,请打开您的终端,在提示符下键入以下命令,然后按Enter:

lscpu
tell-if-32-or-64-bit-cpu-on-linux

The “Architecture” entry tells you what type of CPU you have (where “x86_32” signifies 32-bit and “x86_64” signifies 64-bit). The “CPU op-mode(s)” entry tells you what version of Linux you’re running. If you’re running a 64-bit version, you’ll see both 32-bit and 64-bit modes listed (since a 64-bit processor can run both). If you only see the 32-bit mode listed, you’re running a 32-bit version of Linux.

“体系结构”条目告诉您拥有哪种类型的CPU(“ x86_32”表示32位,“ x86_64”表示64位)。 “ CPU op-mode(s)”条目告诉您正在运行Linux版本。 如果运行的是64位版本,则将同时列出32位和64位模式(因为64位处理器可以同时运行)。 如果仅看到列出的32位模式,则说明您正在运行32位版本Linux。

选项二:使用图形界面 (Option Two: Use the Graphical Interface)

If you would rather use a graphical tool to find out whether your system is 32-bit or 64-bit, click the “System” menu (the gear button) in the upper-right corner of the screen, and then select the “System Settings” options from the dropdown menu.

如果您想使用图形工具来确定您的系统是32位还是64位,请单击屏幕右上角的“系统”菜单(齿轮按钮),然后选择“系统”设置”选项。

In the “System Settings” window, double-click the “Details” icon in the “System” section.

在“系统设置”窗口中,双击“系统”部分中的“详细信息”图标。

In the “Details” window, on “Overview” tab, look for the “OS type” entry. You’ll see either “64-bit” or “32-bit” listed, along with other basic information about your Ubuntu system.

在“详细信息”窗口的“概述”选项卡上,查找“操作系统类型”条目。 您将看到列出的“ 64位”或“ 32位”,以及有关Ubuntu系统的其他基本信息。

Note that, unlike with the terminal command, the “Details” window only shows you what OS type you’re running—not the architecture of your system. This means if you’re running a 32-bit version of Linux, you still won’t know if your computer could support the 64-bit version. For that, you’ll have to use the lscpu command we described in the previous section.

请注意,与终端命令不同,“详细信息”窗口仅显示正在运行的操作系统类型,而不显示系统的体系结构。 这意味着,如果您运行的是32位版本Linux,则仍然不知道您的计算机是否可以支持64位版本。 为此,您必须使用上一节中描述的lscpu命令。

翻译自: https://www.howtogeek.com/198615/how-to-check-if-your-linux-system-is-32-bit-or-64-bit/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值