I have a server running RHEL on s390 hardware. How do I find whether the server is 31 bit or 64 bit?

uname -a gives:

Linux <hostname> 2.6.32-131.17.1.el6.s390x #1 SMP Thu Sep 29 10:42:48 EDT 2011 s390x s390x s390x GNU/Linux

Running getconf LONG_BIT will tell you if it is 64 bit or not:

[cole@localhost ~]$getconf LONG_BIT

According to the Wikipedia Page for the S/390 it's a 31/32-bit system. The "z" architecture replaced this series and introduced 64-bit.

  • On z architecture, would uname -a also read as s390? Apr 2 '13 at 14:54
  • I have absolutely no idea. Have you tried our sister site unix.stackexchange.com ?
    – pauska
    Apr 2 '13 at 14:56
  • Possibly try getconf LONG_BIT - it should tell you if it's 64 or not. Apr 2 '13 at 14:57
  • @Cole getconf LONG_BIT prints 64, which prob. means it's 64 bit. Thanks! Extra points if you phrase that as an answer. Apr 2 '13 at 15:23
  • @BlackSheep I guess this isn't a S/390 then?
    – pauska
    Apr 2 '13 at 15:56
uname -m

gives you bit size for your server

and you can also use getconf command.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.