The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-11-2002
Ralf's Avatar
Ralf Ralf is offline
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)
  #2 (permalink)  
Old 11-11-2002
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,119
"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 (permalink)  
Old 11-11-2002
Kelam_Magnus's Avatar
Kelam_Magnus Kelam_Magnus is offline Forum Advisor  
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.
  #4 (permalink)  
Old 11-11-2002
RTM's Avatar
RTM RTM is offline Forum Advisor  
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 (permalink)  
Old 11-12-2002
Ralf's Avatar
Ralf Ralf is offline
Registered User
  
 

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

Posts: n/a
Bits: 0 [Banking]
brilliant...

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

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

thanks
  #7 (permalink)  
Old 11-13-2002
RTM's Avatar
RTM RTM is offline Forum Advisor  
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:42 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0