Visit Our UNIX and Linux User Community


32-bit or 64-bit


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers 32-bit or 64-bit
# 1  
Old 11-11-2002
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  
Old 11-11-2002
"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
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
On Solaris 7 and above, you can use the isainfo command.

% isainfo -kv
# 5  
Old 11-12-2002
Thanks everyone Smilie this is a big help.
# 6  
Old 11-12-2002
brilliant...

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

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

thanks
yls177
# 7  
Old 11-13-2002
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
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #665
Difficulty: Easy
In 2000, Microsoft cofounder Bill Gates relinquished his role as CEO of Microsoft to Steve Baltimore.
True or False?

4 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Which version of Windows Vista to install with a product key? 32-bit or 64-bit?

Hello everyone. I bought a dell laptop (XPS M1330) online which came without a hard drive. There is a Windows Vista Ultimate OEMAct sticker with product key at the bottom case. I checked dell website (here) for this model and it says this model supports both 32 and 64-bit version of Windows... (4 Replies)
Discussion started by: milhan
4 Replies

2. Shell Programming and Scripting

How to handle 64 bit arithmetic operation at 32 bit compiled perl interpreter?H

Hi, Here is the issue. From the program snippet I have Base: 0x1800000000, Size: 0x3FFE7FFFFFFFF which are of 40 and 56 bits. SO I used use bignum to do the math but summing them up I always failed having correct result. perl interpreter info, perl, v5.8.8 built for... (0 Replies)
Discussion started by: rrd1986
0 Replies

3. Red Hat

boot the 32 bit kernel on a 64 bit PPC Linux machine?

Hi all, I'm looking to cover a corner case for an upcoming test cycle. Is there a way to boot a RedHat Advanced Server 4 (update 3) installed on a Power PC machine to use a 32 bit kernel? This would be similar to what is done here -> https://www.unix.com/aix/26204-aix-platform.html I've done... (0 Replies)
Discussion started by: philrau
0 Replies

4. Programming

copying or concatinating string from 1st bit, leaving 0th bit

Hello, If i have 2 strings str1 and str2, i would like to copy/concatenate str2 to str1, from 1st bit leaving the 0th bit. How do i do it? (2 Replies)
Discussion started by: jazz
2 Replies

Featured Tech Videos