hi,
what is the quickest way to determine how much mem. and disk space a red hat machine has? I have been using df -lm and free, but the numbers that i get (when divided by 1024) don't come out evenly...i know the memory
may not always be exactly, let's say 256 megs for example, but sometimes the numbers are way off.
please help! i have to do an inventory of a subnet of RH boxes. :)
where is sysinfo when you need it?
beej. :eek:
Nalle
03-13-2001, 05:47 PM
For the disk space, try df -h
My output looks like:
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 8.1G 5.6G 2.1G 73% /
/dev/hdb2 1.4G 854M 475M 64% /mnt/hdb2
I think that's pretty understandable?
Now for the memory part:
Using the command top gives you all running processes, but the top of the readout shows something like (on my computer, that is):
10:42pm up 5:14, 1 user, load average: 0.01, 0.07, 0.04
66 processes: 64 sleeping, 1 running, 1 zombie, 0 stopped
10:44pm up 5:16, 1 user, load average: 0.37, 0.14, 0.06
66 processes: 62 sleeping, 3 running, 1 zombie, 0 stopped
CPU states: 5.9% user, 6.4% system, 0.0% nice, 87.5% idle
Mem: 127936K av, 125676K used, 2260K free, 104844K shrd, 43720K buff
Swap: 261500K av, 1996K used, 259504K free 26088K cached
Huh....? Understandable this to?
Hope this helps you *smile*
Gnu/Vince
03-13-2001, 06:26 PM
df -h: for hard drive space
free or top: for free ram
ltrain
03-13-2001, 07:40 PM
The 2 previous posts are good and well documented replies. Both will work well.
The following 2 commands (man -K "item" or apropos "item") can help you in the future find information on "keywords".
For example if you wanted to search for commands that have to with memory you could, at the command prompt type:
man -K memory or apropos memory
Both will display information the system finds that relate to the word you specified with the command. Good luck.