In this post, you can see how we will check the operating system is 32 bit or 64 bit. Normally when we download any software on Unix platform they have dependency regarding the operating system version. So after following my this post you can easily get the information about the operating system version information.
When you work on Unix operating system then you must know the version of operating system. Because without getting exact version of OS, you can not install the packages on the Linux system.
Here, I mentioned the command and their output using these commands you can easily found the version of operating system. It is 32 bit or 64 bit.
Linux Operating System:
#uname –a
Linux vibhor 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
#uname -m
x86_64
If the output has "x86_64",the environment is 64 bit.
Solaris Operating System:
#isainfo options
-v Prints detailed information about the other options
-b Prints the number of bits in the address space of the native instruction set.
-n Prints the name of the native instruction set used by portable applications supported by the current version of the OS.
-k Prints the name of the instruction set or sets that are used by the OS kernel components such as device drivers and STREAMS modules.
[vibhor]# isainfo -v
64-bit sparcv9 applications
ima fmaf vis2 vis popc
32-bit sparc applications
ima fmaf vis2 vis popc v8plus div32 mul32
[vibhor]# isainfo -b
64
[vibhor]#isainfo
sparcv9 sparc
The output for the above command should be sparcv9 sparc for a 64-bit operating System.
AIX Operating System:
vibhor:/> getconf -a | grep KERN
KERNEL_BITMODE: 64
vibhor:/> bootinfo -y
64
The output of the above command should be 64 for a 64-bit hardware. The command must be executed as root.
Note: on AIX, the -y option will specify if the hardware is 32- or 64-bit mode while bootinfo -k will specify if the kernel is 32- or 64-bit (this command must be run as root).
HP-UX Operating system:
hpx:/> getconf KERNEL_BITS
64
The output of the above command should be 64 for a 64-bit operating system.
When you work on Unix operating system then you must know the version of operating system. Because without getting exact version of OS, you can not install the packages on the Linux system.
Here, I mentioned the command and their output using these commands you can easily found the version of operating system. It is 32 bit or 64 bit.
Linux Operating System:
#uname –a
Linux vibhor 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
#uname -m
x86_64
If the output has "x86_64",the environment is 64 bit.
Solaris Operating System:
#isainfo options
-v Prints detailed information about the other options
-b Prints the number of bits in the address space of the native instruction set.
-n Prints the name of the native instruction set used by portable applications supported by the current version of the OS.
-k Prints the name of the instruction set or sets that are used by the OS kernel components such as device drivers and STREAMS modules.
[vibhor]# isainfo -v
64-bit sparcv9 applications
ima fmaf vis2 vis popc
32-bit sparc applications
ima fmaf vis2 vis popc v8plus div32 mul32
[vibhor]# isainfo -b
64
[vibhor]#isainfo
sparcv9 sparc
The output for the above command should be sparcv9 sparc for a 64-bit operating System.
AIX Operating System:
vibhor:/> getconf -a | grep KERN
KERNEL_BITMODE: 64
vibhor:/> bootinfo -y
64
The output of the above command should be 64 for a 64-bit hardware. The command must be executed as root.
Note: on AIX, the -y option will specify if the hardware is 32- or 64-bit mode while bootinfo -k will specify if the kernel is 32- or 64-bit (this command must be run as root).
HP-UX Operating system:
hpx:/> getconf KERNEL_BITS
64
The output of the above command should be 64 for a 64-bit operating system.
No comments:
Post a Comment