Querying Linux for Hardware Info
John Seth
johnseth at phoenixwing.com
Tue Oct 24 16:23:28 MST 2006
'cat /proc/cpuinfo' and 'uname' are the two best suggestions I've heard,
but in regards to memory, 'cat /proc/meminfo' while the best, I'm
surprised I've yet to hear "free". 'free' normally report in KB,
whereas 'free -m' will report in MB, as usual, check 'man free'.
$ free
total used free shared buffers cached
Mem: 515956 368960 146996 0 21660 187544
-/+ buffers/cache: 159756 356200
Swap: 1004052 220 1003832
$ free -m
total used free shared buffers cached
Mem: 503 365 137 0 21 183
-/+ buffers/cache: 161 342
Swap: 980 0 980
This is on a machine w/ 512MB RAM.
hth,
Tony Evans
Phoenix Wing Interactive
johnseth at phoenixwing.com
http://www.phoenixwing.com/
Daniel Parraz wrote:
> Could also use:
>
> cat /proc/cpuinfo
>
> To figure out the CPU family, bigo, etc
>
> cat /proc/meminfo
>
> To find out MEMORY info
>
> Hope this helped.
>
> Daniel Parraz
> Tucson, AZ
>
> */"Eric \"Shubes\"" <plug at shubes.net>/* wrote:
>
> vodhner at cox.net wrote:
> > KDE answers the questions below, if I select "System Tools" >
> "Info Center"; but I need to be querying a series of boxes (some of
> them with older Linux distributions) with only command line access.
> So how do I ask Linux the following questions on the command line?
> >
> > 1. What kind of CPU?
>
> # uname -a
> shows you a bunch of stuff. See man uname for more options.
>
> > 2. How much total RAM on the box?
>
> # top
> q to quit. It refreshes automagically. Again, man top.
>
> > Thanks,
> > Vic
>
>
> --
> -Eric 'shubes'
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
>
> ------------------------------------------------------------------------
> Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great
> rates starting at 1¢/min.
> <http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com>
>
>
> <http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss <http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com>
More information about the PLUG-discuss
mailing list