Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What SSH Command Shows Operating System Bit It Is Running (32 or 64)? 1

Status
Not open for further replies.

kennygadams

Programmer
Jan 2, 2005
94
US
The following command returns the version of Red Hat that is running but it does not show if it is the 32-bit or 64-bit.

cat /etc/redhat-release

How do I determine whether this server is running a 32-bit version or 64-bit version?

Kenny
 
You can either try uname -a to check the version of the running kernel or rpm -q kernel. With both command, take note of the string if it contains i386/i586/i686(32bit) or x86_64(64bit).

--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
Okay, it returned:

i686 i686 i386 GNU/Linux

Does that mean 64-bit?

Kenny
 
if it contains i386/i586/i686(32bit)

32-bits

--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top