LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-02-2007, 02:04 PM   #1
linux_2007_
Member
 
Registered: Feb 2007
Posts: 80

Rep: Reputation: 15
how to check system specifications?


Hello,

Are there commands in linux to check the specifications of a computer such as;

- CPU type (AMD, Pentium, 32/64bit), support, such as max cycles/frequency, etc.

- RAM support, max capacity, spec such as PC100/PC133/etc.

etc.

I tried dmidecode, but it says:
bash: dmidecode: command not found

Any idea?
 
Old 03-02-2007, 02:13 PM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Take a look at this thread.
 
Old 03-02-2007, 02:16 PM   #3
cpd05
Member
 
Registered: Jan 2006
Distribution: Debian
Posts: 90

Rep: Reputation: 15
try dmidecode as root, also look in the /proc directory it contains all the system info for example, as root:

cat /proc/cpuinfo

gives me the following:

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 9
model name : Intel(R) Pentium(R) M processor 1500MHz
stepping : 5
cpu MHz : 600.000
cache size : 1024 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr mce cx8 sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 tm pbe est tm2
bogomips : 1195.31
clflush size : 64

its all in /proc

Cheers

Chris.
 
Old 03-03-2007, 12:24 AM   #4
linux_2007_
Member
 
Registered: Feb 2007
Posts: 80

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by reddazz
Take a look at this thread.
When I run this command (or some other commnads, such as ifconfig), it says: bash: thread: cannot found
I tried ./thread, but same thing happens.

Any idea what might be wrong?
 
Old 03-03-2007, 11:00 AM   #5
cpd05
Member
 
Registered: Jan 2006
Distribution: Debian
Posts: 90

Rep: Reputation: 15
Quote:
Originally Posted by linux_2007_
When I run this command (or some other commnads, such as ifconfig), it says: bash: thread: cannot found
I tried ./thread, but same thing happens.

Any idea what might be wrong?

Hey,

ifconfig has to be run as root, you can become root in a terminal either by:

su

and then entering the root password, you will be root in that terminal though until you close it or exit. Or you could set up a program like sudo or fakeroot so when you want to run a root only command you prefix it with sudo. i.e.

sudo ifconfig

I'm not sure why you trying to run the thread command - I don't think it is a command, it isn't a command on my system. reddazz was pointing you in the direction of other forum postings.

The ./ prefix makes bash look in the current directory your in for the executable file, for example if I wanted to run an exe program that was in my current directory I would enter:

./exe_program_name

Hope that makes sense,

Chris.
 
Old 02-06-2009, 05:54 AM   #6
nirajpendal
LQ Newbie
 
Registered: Jan 2009
Posts: 1

Rep: Reputation: 0
I had a same problem.

I tried dmidecode on other than root account it says
command not found.

In terminal I run dmidecode with su still i got command not found.

Then i tried the following and it works for me.

su
password:

/usr/sbin/dmidecode and it works fine for me.
 
Old 02-06-2009, 09:01 AM   #7
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
I prefer the output of lshw to that of dmidecode.

lshw takes the info from dmidecode and several other sources puts it all togethert and formatis it a bit nicer, so it is easier to read.

lshw will most likely not be installed on your distro by default, but it should be readily available in it's repository..

NO matter which tol you use (lshw, dmidecode, cat /proc/cpuinfo) having a list of the CPU feature flags handy to decode the CPU capabilities is pretty handy..

Code:
it-lenny:~# lshw -C processor
  *-cpu                   
       description: CPU
       product: Intel(R) Pentium(R) D CPU 2.80GHz
       vendor: Intel Corp.
       physical id: 400
       bus info: cpu@0
       version: 15.4.7
       serial: 0000-0F47-0000-0000-0000-0000
       slot: Microprocessor
       size: 2800MHz
       width: 64 bits
       clock: 800MHz
       capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx x86-64 constant_tsc pni monitor ds_cpl cid cx16 xtpr lahf_lm
       configuration: id=0
     *-logicalcpu:0
          description: Logical CPU
          physical id: 0.1
          width: 64 bits
          capabilities: logical
     *-logicalcpu:1
          description: Logical CPU
          physical id: 0.2
          width: 64 bits
          capabilities: logical
Code:
it-lenny:~# lshw -C memory

  *-memory
       description: System Memory
       physical id: 1000
       slot: System board or motherboard
       size: 1GiB
       capacity: 2GiB
     *-bank:0
          description: DIMM DDR Synchronous 533 MHz (1.9 ns)
          product: KHU006-QIA
          vendor: 7F98000000000000
          physical id: 0
          serial: A036F583
          slot: DIMM_1
          size: 1GiB
          width: 64 bits
          clock: 533MHz (1.9ns)
     *-bank:1
          description: DIMM DDR Synchronous 533 MHz (1.9 ns) [empty]
          vendor: FFFFFFFFFFFFFFFF
          physical id: 1
          serial: FFFFFFFF
          slot: DIMM_3
          width: 64 bits
          clock: 533MHz (1.9ns)

Last edited by farslayer; 02-06-2009 at 09:03 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
An error Occurred during the file system check. Dropping you to shell; the system wil aneikei Linux - Newbie 3 02-11-2010 08:38 PM
LXer: Microsoft Releases New "Open Specifications Promise" on 20 Web Services Specifications LXer Syndicated Linux News 0 09-12-2006 10:54 PM
How to check system specifications? Niceman2005 Linux - Newbie 5 04-25-2005 05:21 AM
command which provides the specifications of my PC kpachopoulos Linux - General 3 11-03-2004 06:31 PM
Getting hardware specifications Bill Cosby Linux - Hardware 2 09-01-2004 02:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:36 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