Log in Go to the main page Page Discussion History Go to the file list Go to the site toolbox

Free command

From NetworkCommands


Image:Tux_64x64.png

A command line program available on most Linux platforms; used to display physical memory usage statistics.

Contents

Image:Vm-power-on-medium.png Usage Syntax

free [options]

Common options include;

  • -b - display information in bytes
  • -k - display information in kilobytes
  • -m - display information in megabytes
  • -g - display information in gigabytes
  • -l - display information about low and high memory usage
  • -c number - display information the specified number of times and then exit, must be used with the -s option
  • -s number - repeat, pausing the specified number of seconds, continues indefinately unless the -c option has been used

Image:Vm-power-on-medium.png Usage Examples

free - display summary physical memory usage information

free -mc 2 -s 2 - display summary physical memory usage information, in megabytes, three times with a two second interval

Image:accessories-text-editor-v2-medium.png Usage Notes

The information displayed is actually stored in file: /proc/meminfo

Image:accessories-text-editor-v2-medium.png Linux Usage Notes

With most Linux or Unix commands;

  • Brief help can be displayed using the option/keyword: -h or --help, for example: chmod --help
  • A full command manual can be displayed using the man command followed by the command name, for example: man chmod
  • Sometimes 'info' pages are used instead of or to provide more information than man pages; for example: info chmod
  • Version information can be display using the option/keyword: -v or --version, for example: chmod --version


Image:utilities-terminal-medium.png Typical Output

             total       used       free     shared    buffers     cached
Mem:           371        361         10          0        103         82
-/+ buffers/cache:        175        196
Swap:         3014         78       2935

Image:object-flip-horizontal-medium.png Command Equivalents

The Cisco command equivalent is the show memory command Image:Cisco-logo-small.png

The F5 BigIP command equivalent is the bigpipe memory command Image:F5-logo-small.png

Image:icemon-medium.png Related Articles

Information on other Linux commands Image:Tux-small.png

Information on Cisco commands Image:Cisco-logo-small.png

Information on Vyatta commands Image:Vyatta-logo-small.png

Information on Extreme commands Image:Extreme-logo-small.png

Information on F5 BigIP commands Image:F5-logo-small.png

Information on Blue Coat SGOS commands

Information on Nokia IPSO commands


Image:internet-group-chat-small.png We really do appreciate all feedback so please do send your comments, suggestions or corrections to steve#networkstuff.eu (replacing the # with an @)



Site Toolbox:

Personal tools
This page was last modified on 10 August 2008, at 13:13. - This page has been accessed 44 times. - Disclaimers - About NetworkCommands
Powered by MediaWiki