Kubernetes Views 4

The Linux free command

The Linux free command image 1

The free command is useful when you want to check overall 
memory usage, splitting used and unused memory into 
physical memory and swap (SWAP memory and so on.

free [option]

 Option  Description
 -b  Shows the amount of memory in bytes.
 -k  Shows the amount of memory in KB.
 -m  Shows the amount of memory in MB.
 -t  Prints a line that includes the total.
 -s  Prints every given number of seconds.

Command examples

-b 

Byte

The Linux free command image 2

-k

KB

The Linux free command image 3

-m

MB

The Linux free command image 4

-s 1

Print every second

The Linux free command image 5

-k -t

Print in KB, including the total

The Linux free command image 6

-kt -s 1

Every second, print in KB including the total

The Linux free command image 7

Reactions

Comments 0

A nickname and a password are required. The same password edits or deletes the comment later. Comments appear after a review.

Comments appear after a review. The password is used again to edit or delete.