News
Happy System Administrator Appreciation Day - to the true heroes of IT!
JT
November 29 2024
Updated August 31 2025

How to Check Linux and Windows Version and System Architecture

Linux Maintenance Windows

To work with the OS it is often necessary to know what version is currently installed and what architecture of the processor is used. Since the processor cannot process binary file instructions not of its own architecture, and the OS cannot understand system calls, it is necessary to know this when interacting with software.

What do the kernel and OS version have to do with software execution at all?

Let's briefly consider the complete software processing process. First, the user accesses an executable file of a certain format from his shell, which is also a process, through a system call to the kernel. The kernel creates a child process from our current parent shell and loads the called binary into memory.

It then passes the machine code to the processor for execution, in its ring 3 privileged space. System calls are formed for privileged accesses to hardware devices or the kernel, which is in ring 0. The processor itself executes instructions that have been compiled for its architecture.

How do I know the OS version and processor architecture?

To do this let's open a terminal, in Windows this is done by pressing the shortcut Win+X -> PowerShell, and in Linux Ctrl + Alt + T:

Windows manager
Screenshot №1 — Windows manager

After that, a single command is sufficient for find ubuntu version and another Linux-related OS:

hostnamectl
hostnamectl
Screenshot №2 — Hostnamectl

Where you can see firmware, hostname and other parameters besides architecture and OS versions. Or use the command with a more abbreviated answer to linux ubuntu and other Linux versions:

uname -a
Uname
Screenshot №3 — Uname

For Windows, to find out the OS version is the command:

systeminfo
OS version
Screenshot №4 — OS version

To view the processor architecture we can use:

Get-WmiObject Win32_Processor | Select-Object Name, Architecture
Architecture
Screenshot №5 — Architecture

Where architecture is labelled with code values, consider each of:

Code 0 - x86 architecture;
Code 1 - MIPS architecture;
Code 2 - Alpha architecture;
Code 3 - PowerPC architecture;
Code 5 - ARM architecture;
Code 6 - Itanium architecture;
Code 9 - x64 architecture;
Code 12 - Unknown architecture.

As a result of executing these commands you should get a list of parameters of the requested objects. If you don't have sufficient resources than you can perform actions on powerful cloud servers. Serverspace provides isolated VPS / VDS servers for common and virtualize usage.

Create Server
Screenshot №6 — Create Server

Conclusion

Knowing your operating system version and processor architecture is essential for proper software installation and execution. Both Linux and Windows provide straightforward commands to retrieve this information, allowing you to determine compatibility with applications, system updates, and hardware requirements. By regularly checking your OS version and architecture, you can avoid installation errors and ensure optimal system performance.

FAQ

  • Q1: Why do I need to know my OS version and architecture?
    A: The OS version and processor architecture determine which software packages and binaries can run on your machine. Using incompatible software can cause errors or system crashes.
  • Q2: How can I check my Linux OS version?
    A: Use hostnamectl for detailed information or uname -a for a concise summary, including kernel version and architecture.
  • Q3: How can I check my Windows OS version?
    A: Run systeminfo in PowerShell or Command Prompt to see detailed OS version and system information.
  • Q4: How do I find my processor architecture on Linux?
    A: Use uname -m or check the output of hostnamectl to see the processor architecture.
  • Q5: How do I find my processor architecture on Windows?
    A: Run
    Get-WmiObject Win32_Processor | Select-Object Name, Architecture

    in PowerShell. The architecture codes indicate x86, x64, ARM, and others.

  • Q6: What should I do if my architecture is incompatible with the software?
    A: You may need to install the correct version of the software for your architecture or use virtualization/emulation tools to run compatible binaries.
Vote:
5 out of 5
Аverage rating : 5
Rated by: 1
33145 North Miami, FL 2520 Coral Way apt 2-135
+1 302 425-97-76
700 300
ITGLOBAL.COM CORP
700 300

You might also like...

We use cookies to make your experience on the Serverspace better. By continuing to browse our website, you agree to our
Use of Cookies and Privacy Policy.