cla*_*aws 18 windows linux computer-architecture ubuntu
我正在使用 Core 2 Duo。从英特尔网站我发现它是一个 64 位架构的 CPU。
很久以前我已经在这台机器上安装了 Ubuntu 操作系统。但我不确定我是否安装了 x86-32 或 x86-64 版本的 Linux。我想知道我使用的是哪个版本的 Linux。我怎样才能知道呢?
如何在 Windows 上找到相同的内容?
小智 16
在 Windows Vista 和更新版本上,您可以运行以下命令
wmic os get osarchitecture
Run Code Online (Sandbox Code Playgroud)
找出它是32位还是64位。
mat*_*ull 14
在类 Unix 操作系统上,您可以键入uname -m
以显示架构:
$ uname -m
x86_64
Run Code Online (Sandbox Code Playgroud)
在 Windows 下,请遵循 Microsoft 的指南:
要确定您的计算机在 Windows 7 或 Windows Vista 中运行的是 32 位还是 64 位版本的 Windows,请执行以下操作:
Open System by clicking the Start button, right-clicking Computer, and then clicking Properties.
Under System, you can view the system type.
If your computer is running Windows XP, do the following:
Click Start.
Right-click My Computer, and then click Properties.
If you don't see "x64 Edition" listed, then you're running the 32-bit version of Windows XP.
If "x64 Edition" is listed under System, you're running the 64-bit version of Windows XP.
Run Code Online (Sandbox Code Playgroud)
小智 8
从控制台运行
set
Run Code Online (Sandbox Code Playgroud)
并寻找PROCESSOR_ARCHITECTURE value
. 就我而言:
PROCESSOR_ARCHITECTURE=AMD64
Run Code Online (Sandbox Code Playgroud)
或者只是从开始打印
echo %PROCESSOR_ARCHITECTURE%
Run Code Online (Sandbox Code Playgroud)
补充Tofystedeth 的回答,在 Windows XP(和更新版本)中,您可以使用cpu
的 AddressWidth 和 DataWidth 来获取您需要的数据。
如果你想找到操作系统的架构:
wmic cpu get AddressWidth
Run Code Online (Sandbox Code Playgroud)
如果要查找处理器本身的架构:
wmic cpu get DataWidth
Run Code Online (Sandbox Code Playgroud)