![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
32-bit or 64-bit
Is there a command that will tell me if the operating system is running in 32-bit mode or 64-bit, or the version installed .....
(like `uname` returns the platform type) |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
"uname -r" returns the "release" of the Operating System. On HP-UX, I get B.11.11. With SunOS, I get "5.8". That's close enough to be usuable. So this is an answer to the 2nd part of of question.
As for the first part, HP-UX has a command "getconf KERNEL_BITS" that will do exacyly what you want. Sun's getconf does not have this feature though. |
|
#3
|
||||
|
||||
|
I also know that in HPUX you can run "swlist |grep 64 " and get this output.
# swlist |grep 64 HPUXBase64 B.11.11 HP-UX 64-bit Base OS In your flavor, list patches and grep for 64.
__________________
My brain is your brain |
|
#4
|
||||
|
||||
|
On Solaris 7 and above, you can use the isainfo command.
% isainfo -kv |
|
#5
|
||||
|
||||
|
Thanks everyone
|
|
#6
|
|||
|
|||
|
brilliant...
but that left aix out of the picture...? any equivalent commands in aix.. to show 32 or 64 bits.. thanks |
|
#7
|
||||
|
||||
|
According to AIX pages at IBM, the /etc/inittab is altered to load the 64-bit kernel. You might be able to tell from that.
IBM AIX BOS 64-bit |
||||
| Google The UNIX and Linux Forums |