The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-11-2002
Ralf's Avatar
Registered User
 

Join Date: Oct 2002
Posts: 34
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  
Old 11-11-2002
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,653
"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  
Old 11-11-2002
Kelam_Magnus's Avatar
Registered User
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
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  
Old 11-11-2002
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
On Solaris 7 and above, you can use the isainfo command.

% isainfo -kv
  #5  
Old 11-12-2002
Ralf's Avatar
Registered User
 

Join Date: Oct 2002
Posts: 34
Thanks everyone this is a big help.
  #6  
Old 11-12-2002
yls177
Guest
 

Posts: n/a
brilliant...

but that left aix out of the picture...?

any equivalent commands in aix.. to show 32 or 64 bits..

thanks
  #7  
Old 11-13-2002
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
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
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:38 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0