Show Available System Memory In Linux

The free command can be used to display how much memory is available on your system. This includes how much is used and how much is freely available.

$ free
               total        used        free      shared  buff/cache   available
Mem:        57394320    19344552     1994352      741160    37467908    38049768
Swap:       49299452       14848    49284604

This isn't very readable as the output is in bytes.

To make it more readable you can supply the -h (or human) flag to convert the value into a more readable format. The --si (international system of units) flag is also a good addition as it shows the memory usage in powers of 1000 and not 1024.

$ free -h --si
               total        used        free      shared  buff/cache   available
Mem:             58G         19G        2.0G        758M         38G         38G
Swap:            50G         15M         50G

See free --help for more options around this command.

Add new comment

The content of this field is kept private and will not be shown publicly.