$grep MemTotal /proc/meminfo                        (for system memory size)

$grep SwapTotal /proc/meminfo                      (for system swap size)

$free –g                                                                                 (shows memory and swap utilization)

$cat /proc/swaps                                                  (shows swap files registered)