memory check

Franco Saliola saliola at gmail.com
Thu Dec 20 20:08:38 UTC 2007


On Dec 20, 2007 2:47 PM, Donald &/or Mila Trombley <donmila at shaw.ca> wrote:
> What is the command in Linux for the total memory which is in a
> computer? In the days before Winblows, (I no longer have Winblows on my
> hard disk, nor do I have a backup disk, else I would have used  it for
> checking) I.E. when DOS ruined the world, it used to be either chkdsk,
> or mem......

The files in the /proc directory contain a lot of information about
the system. Be careful when reading these files, only should only use
cat so that you don't overwrite something. For example,

For info about the memory on a system:

  cat /proc/meminfo

Look for MemTotal (first line?) in the output.

For cpu info:

  cat /proc/cpuinfo

For info about the partitions attached to a system:

  cat /proc/partitions

Franco

--




More information about the ubuntu-ca mailing list