{"id":11156,"date":"2021-10-15T11:26:54","date_gmt":"2021-10-15T11:26:54","guid":{"rendered":"https:\/\/linuxways.net\/?p=11156"},"modified":"2021-10-15T11:26:54","modified_gmt":"2021-10-15T11:26:54","slug":"free-command-in-linux","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/centos\/free-command-in-linux\/","title":{"rendered":"Free Command in Linux"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>free command is used to check the total amount of free space available with used memory and swap memory in your system.<\/p>\n<p>This command is very necessary for Linux administrators when you want to install a large program. It saves time to check the capacity thereby making the installation process more smooth. We will show you how to use the free command through several examples as you go through below.<\/p>\n<h2>The syntax of free command<\/h2>\n<pre>$ free [options]<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1042\" height=\"109\" class=\"wp-image-11157\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-288.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-288.png 1042w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-288-300x31.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-288-1024x107.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-288-768x80.png 768w\" sizes=\"auto, (max-width: 1042px) 100vw, 1042px\" \/><\/p>\n<p><strong>total<\/strong>: total installed memory<\/p>\n<p><strong>used<\/strong>: total used memory<\/p>\n<p><strong>free<\/strong>: free available memory<\/p>\n<p><strong>shared<\/strong>: memory used by tmpfs<\/p>\n<p><strong>buff<\/strong>: memory used by the OS kernel<\/p>\n<p><strong>cache<\/strong>: memory used to store temporary data<\/p>\n<p><strong>available<\/strong>: total available memory<\/p>\n<p><strong>options<\/strong>:<\/p>\n<p><strong>-b<\/strong> output with unit bytes<\/p>\n<pre>$ free -b<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1042\" height=\"111\" class=\"wp-image-11158\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-289.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-289.png 1042w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-289-300x32.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-289-1024x109.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-289-768x82.png 768w\" sizes=\"auto, (max-width: 1042px) 100vw, 1042px\" \/><\/p>\n<p><strong>-k<\/strong> output with unit kilobytes<\/p>\n<pre>$ free -k<\/pre>\n<p>Output: <img loading=\"lazy\" decoding=\"async\" width=\"1043\" height=\"107\" class=\"wp-image-11159\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-290.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-290.png 1043w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-290-300x31.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-290-1024x105.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-290-768x79.png 768w\" sizes=\"auto, (max-width: 1043px) 100vw, 1043px\" \/><\/p>\n<p><strong>-m<\/strong> output with unit megabytes<\/p>\n<pre>$ free -m<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1041\" height=\"108\" class=\"wp-image-11160\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-291.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-291.png 1041w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-291-300x31.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-291-1024x106.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-291-768x80.png 768w\" sizes=\"auto, (max-width: 1041px) 100vw, 1041px\" \/><\/p>\n<p><strong>-g <\/strong>output with unit gigabytes<\/p>\n<p>$ free -g<\/p>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1042\" height=\"108\" class=\"wp-image-11161\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-292.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-292.png 1042w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-292-300x31.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-292-1024x106.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-292-768x80.png 768w\" sizes=\"auto, (max-width: 1042px) 100vw, 1042px\" \/><\/p>\n<p><strong>-t <\/strong>more statistics on total memory capacity including swap space<\/p>\n<pre>$ free -t<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1041\" height=\"131\" class=\"wp-image-11162\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-293.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-293.png 1041w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-293-300x38.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-293-1024x129.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-293-768x97.png 768w\" sizes=\"auto, (max-width: 1041px) 100vw, 1041px\" \/><\/p>\n<p><strong>-s <\/strong>statistics with delay time appearing<\/p>\n<p>For example, I want to make statistics every 3 seconds:<\/p>\n<pre>$ free -s3<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1043\" height=\"469\" class=\"wp-image-11163\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-294.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-294.png 1043w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-294-300x135.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-294-1024x460.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/10\/word-image-294-768x345.png 768w\" sizes=\"auto, (max-width: 1043px) 100vw, 1043px\" \/><\/p>\n<h2>Conclusion<\/h2>\n<p>In this tutorial, we guided you on how to use the free command with some examples.<\/p>\n<p>Thanks for reading!<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction free command is used to check the total amount of free space available with used memory and swap memory in your system. This command is very necessary&hellip;<\/p>","protected":false},"author":1,"featured_media":11220,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,4,5,83,165,2],"tags":[630,35],"class_list":["post-11156","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-debian","category-mint","category-opensuse","category-red-hat","category-ubuntu","tag-free-command","tag-linux"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/11156","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=11156"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/11156\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/11220"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=11156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=11156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=11156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}