The “free” command is used to displays information about the servers/hosts memory usage. Which gives details of the total memory, used memory, and available memory, also swap space usage. It comes from “procps-ng” package.
Examples:
1. To display the memory utilization of the system you can the command and the output will display below parameters.
$ free |

2. To display the memory utilization in bytes
$ free -b |

3. To display the memory utilization in kilo bytes
$ free -k |

4. To display the memory utilization in mega bytes
$ free -m |

5. To display the memory utilization in giga bytes
$ free -g |

6. To display the memory utilization with totals
$ free -t |

7. To display the memory utilization in human readable format,
$ free -h |

8. To display the continuous polling data
$ free -s 2 10 |
9. To see the detailed high and low statistics for memory usage
$ free -l |

10. To get the version information
$ free -V |
Related Commands: ps, slabtop, vmstat, top