{"id":31,"date":"2010-02-01T14:47:25","date_gmt":"2010-02-01T13:47:25","guid":{"rendered":"http:\/\/toderu.ro\/blog\/?p=31"},"modified":"2010-02-01T14:47:25","modified_gmt":"2010-02-01T13:47:25","slug":"how-can-i-determine-the-architecture-of-my-red-hat-enterprise-linux-system","status":"publish","type":"post","link":"https:\/\/kb.toderu.ro\/?p=31","title":{"rendered":"How can I determine the architecture of my Red Hat Enterprise Linux system?"},"content":{"rendered":"<p>\t\t\t\tHow can I determine the architecture of my Red Hat Enterprise Linux system?<\/p>\n<p>Environment<\/p>\n<p>Red Hat Enterprise Linux 5<br \/>\nRed Hat Enterprise Linux 4<\/p>\n<p>Resolution<\/p>\n<p>Red Hat Enterprise Linux is available for various 32-bit and 64-bit platforms.<\/p>\n<p>There are two methods to determine what architecture of Red Hat Enterprise Linux you are running.<\/p>\n<p>1) The output of &#8220;<code>uname -a<\/code>&#8221;<\/p>\n<p>Example output on a 32-bit system:<\/p>\n<p><code>Linux my32bitsystem 2.6.18-53.1.4.el5 #1 SMP Wed Nov 14 10:37:33 EST 2007 i686 i686 i386 GNU\/Linux <\/code><br \/>\nThe i686 indicates this is a 32-bit system.<\/p>\n<p>Example output on a 64-bit system:<\/p>\n<p><code>Linux my64bitsystem 2.6.18-53.1.6.el5xen #1 SMP Wed Jan 16 04:10:44 EST 2008 x86_64 x86_64 x86_64 GNU\/Linux <\/code><br \/>\nThe x86_64 indicates this is a 64-bit system. Note that 64-bit hardware can also run 32-bit software.<\/p>\n<p>2) The output of &#8220;<code>arch<\/code>&#8221;<br \/>\nExample output on a 64bit PowerPC system:<\/p>\n<p><code>[root@power5-2 getconf]# arch<br \/>\nppc64<\/code><\/p>\n<p>Attention:<br \/>\ngetconfig LONG_BIT is not a good method. Because the result is determined by soft link <code>\/usr\/libexec\/getconf\/default<\/code>.<br \/>\nDifferent target of soft link, different result. For a example:<\/p>\n<p><code>[root@power5-2 getconf]# getconf LONG_BIT<br \/>\n32<br \/>\n[root@power5-2 getconf]# mv default default.bak<br \/>\n[root@power5-2 getconf]# ln -s POSIX_V6_LP64_OFF64 default<br \/>\n[root@power5-2 getconf]# ll<br \/>\ntotal 48<br \/>\nlrwxrwxrwx  1 root root    19 Sep 22 22:55 default -> POSIX_V6_LP64_OFF64<br \/>\nlrwxrwxrwx  1 root root    20 Jul 28 00:32 default.bak -> POSIX_V6_ILP32_OFF32<br \/>\n-rwxr-xr-x  1 root root     0 Sep 22 22:54 POSIX_V6_ILP32_OFF32<br \/>\n-rwxr-xr-x  1 root root 19892 Jan  9  2009 POSIX_V6_ILP32_OFFBIG<br \/>\n-rwxr-xr-x  1 root root 26264 Jan 10  2009 POSIX_V6_LP64_OFF64<br \/>\n[root@power5-2 getconf]# getconf LONG_BIT<br \/>\n64<br \/>\n[root@power5-2 getconf]#<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How can I determine the architecture of my Red Hat Enterprise Linux system? Environment Red Hat Enterprise Linux 5 Red Hat Enterprise Linux 4 Resolution Red Hat Enterprise Linux is available for various 32-bit and 64-bit platforms. There are two methods to determine what architecture of Red Hat Enterprise Linux you are running. 1) The [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-31","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=\/wp\/v2\/posts\/31","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=31"}],"version-history":[{"count":0,"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=\/wp\/v2\/posts\/31\/revisions"}],"wp:attachment":[{"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}