View Single Post
  #6 (permalink)  
Old 24-03-2008, 04:22 PM
Tux-Idiot Tux-Idiot is offline
Member
User
 
Join Date: Mar 2008
OS: Debian, Slackware, LFS
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2
Tux-Idiot is on a distinguished road
Default

Quote:
Originally Posted by tom View Post
Quick question - How do I display number of processors on linux?

Simply use top command:
Code:
top
Get info from /proc/cpuinfo with the help of grep command
Code:
grep -c processor /proc/cpuinfo


correction

Code:
grep -c processor /proc/cpuinfo
[/quote]

right info for cpu

grep CPU /proc/cpuinfo
grep cpu /proc/cpuinfo

and to see the process in the linux machine? start searching in /proc/ thats the one which does the heavy dirty work! and also make sure you know difference between process and threads. like process is when you run xmms it opens up 3 windows, xmms is a process and those 3 windows are threads, threads are not identical with processess.
best way?
man lsof
Reply With Quote