Need Linux commands

Hi,

Can you please get me the linux commands to find the below details.

  1. Amount of buffers/cache used for RAM and Swap ( I think free -m command will provide the details.but not understandable. Please provide some info on how to check the amount of buffers/cache value etc.)

  2. Number of page ins and page outs.

Thanks in advance.

Regards,
Uday

  1. Try looking at: free(1): amount of free/used memory in system - Linux man page.

vmstat(8) will report swap in and swap out.

sar(1) with the -B parameter will report paging if sar data gathering is enabled (sysstat cron?).