LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-05-2013, 09:17 AM   #1
sagar666
Member
 
Registered: Feb 2013
Posts: 212

Rep: Reputation: Disabled
how to find linux OS is a 32 bit or 64 bit


How to find a weather my Linux os is a 32 bit or 64 bit and which file contains a os information 32bit or 64bit??
 
Old 03-05-2013, 09:23 AM   #2
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 99
From the command line, if you enter
Code:
uname -a
you will receive something similar to this:

32-bit
Linux computer_name 2.6.32-358.0.1.el6.i686

64-bit
Linux computer_name 2.6.32-358.0.1.el6.x86_64

Linux = OS

computer_name = name of the computer

2.6.32-358.0.1.el6 = kernel version

i686 = 32-bit designation
x86_64 = 64-bit designation

Last edited by netnix99; 03-05-2013 at 09:25 AM.
 
Old 03-05-2013, 09:26 AM   #3
sagar666
Member
 
Registered: Feb 2013
Posts: 212

Original Poster
Rep: Reputation: Disabled
Thanks netnix

where that file is located???
 
Old 03-05-2013, 09:33 AM   #4
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 99
It's not a file, it is a command that you execute in a terminal
 
Old 03-05-2013, 11:21 AM   #5
d3vrandom
Member
 
Registered: Jun 2006
Location: Karachi, Pakistan
Distribution: OpenSUSE, CentOS, Debian
Posts: 59

Rep: Reputation: 9
Another way is to just type:

Code:
arch
 
1 members found this post helpful.
Old 03-05-2013, 01:07 PM   #6
m_r_emon82
LQ Newbie
 
Registered: Aug 2011
Posts: 1

Rep: Reputation: Disabled
`arch` is deprecated command since release util-linux 2.13. Use `uname -m`.


Code:
$ uname -m
x86_64
 
Old 03-05-2013, 09:04 PM   #7
KinnowGrower
Member
 
Registered: May 2008
Location: Toronto
Distribution: Centos && Debian
Posts: 347

Rep: Reputation: 34
uname command tells you about Kernel whether it 32 bit or 64 bit. But some Linux distro came with mix of 32 bit user land and 64 bit kernel. One of them is Debian. So to find about user land the command is

Code:
file /usr/bin/file
Out put would be
Quote:
/usr/bin/file: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV)
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Installing 32 bit RPMs on 64 bit Linux conflicts with 64 bit packages gheibia Linux - Server 1 08-18-2011 01:33 AM
Wine 32 bit on Slackware 13 64 bit problems: configure can't find some libraries ozanbaba Slackware 28 11-26-2010 02:42 PM
how to find and install 32-bit X11 libraries on 64-bit ubuntu 10.04 maxreason Linux - Software 8 08-30-2010 08:51 PM
how to find and install 32-bit X11 libraries on 64-bit ubuntu 10.04 maxreason Ubuntu 1 08-27-2010 08:25 PM
How do I find whether any linux kernel supports 32-bit or 64-bit architecture? dev_d Linux - Newbie 3 02-24-2010 02:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration