32-bit or 64-bit | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


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

32-bit or 64-bit

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 11-11-2002
Ralf's Avatar
Ralf Ralf is offline
Registered User
 
Join Date: Oct 2002
Last Activity: 24 August 2006, 8:48 AM EDT
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
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)
Sponsored Links
    #2  
Old 11-11-2002
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon (Administrator Emeritus)
 
Join Date: Aug 2001
Last Activity: 18 September 2014, 2:40 PM EDT
Location: Ashburn, Virginia
Posts: 9,925
Thanks: 60
Thanked 435 Times in 260 Posts
"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.
Sponsored Links
    #3  
Old 11-11-2002
Kelam_Magnus's Avatar
Kelam_Magnus Kelam_Magnus is offline Forum Advisor  
Registered User
 
Join Date: Aug 2001
Last Activity: 18 April 2013, 3:03 PM EDT
Location: San Antonio, TX,
Posts: 1,070
Thanks: 0
Thanked 4 Times in 4 Posts
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.
    #4  
Old 11-11-2002
RTM's Avatar
RTM RTM is offline Forum Advisor  
Registered User
 
Join Date: Apr 2002
Last Activity: 3 April 2014, 2:50 PM EDT
Location: On my motorcycle
Posts: 3,092
Thanks: 1
Thanked 31 Times in 9 Posts
On Solaris 7 and above, you can use the isainfo command.

% isainfo -kv
Sponsored Links
    #5  
Old 11-12-2002
Ralf's Avatar
Ralf Ralf is offline
Registered User
 
Join Date: Oct 2002
Last Activity: 24 August 2006, 8:48 AM EDT
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks everyone this is a big help.
Sponsored Links
    #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
Sponsored Links
    #7  
Old 11-13-2002
RTM's Avatar
RTM RTM is offline Forum Advisor  
Registered User
 
Join Date: Apr 2002
Last Activity: 3 April 2014, 2:50 PM EDT
Location: On my motorcycle
Posts: 3,092
Thanks: 1
Thanked 31 Times in 9 Posts
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
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes



All times are GMT -4. The time now is 03:48 AM.