free is a command to view various memory stats.

The command free is used to show various memory statistics including:

  • Total memory

  • Used memory

  • Free memory

  • Shared memory

  • Buffers

etc.

See man free for more information.