free—displays amount of free and used memory in the system

free [-b | -k | -m] [-o] [-s delay ] [-t] [-V]

free displays the total amount of free and used physical and swap memory in the system, as well as the shared memory and buffers used by the kernel.

Example A.32.
% free
					          total       used       free     shared   buffers  cached
					Mem:       64148      54528      9620     45632    3460     29056
					-/+ buffers/cache:    22012      42136
					Swap:      96352          0      96352
				

Get Linux Shells by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.