Friday, November 18, 2016
Determine 64 or 32 bit Unix Kernel and HW
Question: How to determine if I'm running 64 bit Unix Kernel ?
Answer: User the following commands
AIX
getconf -a | grep KERN 
SOLARIS
isainfo -vk 
HP-UX
getconf KERNEL_BITS 
LINUX
getconf LONG_BIT 
Question: How to determine if my Unix Hardware is 64 bit ?
Answer: Use the following commands to determine the Hardware Architecture
AIX
bootinfo -y
SOLARIS
isainfo -vk
HP-UX
getconf HW_CPU_SUPP_BITS
or
getconf HW_32_64_CAPABLE
If the above command returns 1, hardware supports both 32 and 64 bit binaries
LINUX
grep flags /proc/cpuinfo
If the output of the above command contains the string "lm", Hardware is 64 bit.
Example:
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht 
tm pbe nx lm constant_tsc pni monitor ds_cpl est cid cx16 xtpr lahf_lm
Note: 64 bit capable Hardware does not mean your OS is 64 bit. Generally, for backward compatibility, 64 bit capable Hardware can run 32 bit Software.
 
 
 
 
 
 
 
 
 
 
 
0 comments :
Post a Comment
Note: Only a member of this blog may post a comment.