СHRISTMAS
WHEEL OF FORTUNE

Tap the button and win a guaranteed prize right now!

By registering, you are signing up to receiving e-mails.
JT
November 29 2024
Updated November 29 2024

How do I view the Linux and Windows version?

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
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.