Check if your Linux System is 32 or 64 Bit?

28/12/2020
Chưa phân loại

In this post, we will quickly see how we can check if our Linux based system is either 32-bit or 64-bit. Although, most computers today can run 64 bit Operating systems, an interesting thing to note is, a 64-bit system can also run a 32-bit operating system. We can discuss what version is more recommended once we get to know how check our version.

Option One: The lscpu Command

We can run a simple command to check detailed information about our Linux machine. Run following command:

lscpu

Once we run this, we can see following information about our machine:

On the first line, the ‘Architecture’ tells us kind of CPU we have. As shown, we have a x86_64 type of CPU which signifies a 64-bit system. i686 signifies a 32-bit system.

Let’s try another option.

Option Two: Using the Graphical Interface

This is of course an easier option when it comes to avoiding commands. I will show you on Ubuntu LTS 16.04, but similar Graphical Intefaces exist on other distributions.  Let’s click the gear icon on top-right corner to open a menu and move forward:

Now, click on details next:

Finally, we can our system details here:

This is very clear metadata about our system. But this option has limitations as the data presented here is very much limited as compared to the first option we looked at.

32-bit vs 64-bit OS

Briefly, 32-bit distributions are preferred when you are running 32-bit systems. However, 64-bit processors are preferred as they are backwards-compatible and can run 32-bit software. This also means that we can use 32-bit Operating systems on a 64-bit machines.

ONET IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, ONET IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

Libvirt with Python

In one of my previous posts, I showed how one can get started with Libvirt and KVM. This virtualization stack is meant...
29/12/2020

Print to PDF in Firefox; Best Techniques

Ever wondered!! How to convert the whole webpage to PDF file so that you can print it or save to your desktop to read it...
29/12/2020

Bash Parameter Expansion

The parameter is used in bash to store data. Different types of data can be stored in the parameter, such as integer, string,...
29/12/2020
Bài Viết

Bài Viết Mới Cập Nhật

Dịch Vụ Xây Dựng Hệ Thống Peering Với Internet Exchange (IXP)
04/04/2025

Dịch Vụ Triển Khai VPN Site-to-Site & Remote Access
04/04/2025

Dịch Vụ Thiết Lập Hệ Thống Tường Lửa (Firewall)
04/04/2025

Dịch Vụ Triển Khai Hệ Thống Ảo Hóa & Cloud
04/04/2025

Dịch Vụ Triển Khai Hệ Thống Ceph
04/04/2025