digitalFAQ.com Forum

digitalFAQ.com Forum (https://www.digitalfaq.com/forum/)
-   Website and Server Troubleshooting (https://www.digitalfaq.com/forum/web-tech/)
-   -   SSH command for Linux version, 32-bit vs 64-bit, and RHEL release edition (https://www.digitalfaq.com/forum/web-tech/3809-ssh-command-linux.html)

kpmedia 01-10-2012 02:41 AM

SSH command for Linux version, 32-bit vs 64-bit, and RHEL release edition
 
Which version of Linux?

To learn which Linux OS you're running, type this into SSH (and you may need to be logged in as root):
Code:

[vps@root ~]$ cat /proc/version
... and it'll spit out a quasi-jargon answer that needs further deciphering. For example:
Code:

Linux version 2.6.9-023stab051.3-entnosplit (root@rhel4-32) (gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)) #1 SMP Wed Nov 4 19:42:24 MSK 2009

Which version of an RHEL distribution? (Red Hat, CentOS, Scientific, Fedora, etc)

To learn which RHEL edition you're running, type this into SSH (and you may need to be logged in as root):
Code:

[vps@root ~]$cat /etc/redhat-release
... and it'll give out a straight non-jargon answer. For example:
Code:

CentOS release 5.6 (Final)

32-bit vs 64-bit command:

To discover if you have a 32-bit OS or 64-bit OS, type this into SSH (and you may need to be logged in as root):
Code:

[vps@root ~]$ uname -a
You'll get one of these results:
  • Linux domain.com version date x86_64 x86_64 x86_64 GNU/Linux = 64-bit
  • Linux domain.com version date ia64 ia64 ia64 GNU/Linux = 64-bit
  • Linux domain.com version date i686 i686 i386 GNU/Linux = 32-bit
Note that domain.com, version and date will correspondent to the hostname, Linux version, and date of release. But that information isn't really what you're looking for anyhow. You want the 32- or 64-bit data from the tail end of the response.


Hope that helps. :)

__________________

Need a good host?
Find one here --> List of the Best Web Hosts in 2012 - Shared, reseller and VPS hosting


All times are GMT -5. The time now is 02:32 AM

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.