Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the common command free in Linux

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to use the commonly used Linux command free for you. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

Linux common commands free commands are used to display memory status, and free instructions show memory usage, including physical memory, virtual swap file memory, shared memory segments, and buffers used by the system core.

Syntax free [- bkmotV] [- s] parameter description:

-b displays memory usage in Byte units.

-k displays memory usage in KB units.

-m displays memory usage in MB units.

-h displays memory usage in appropriate units, up to a maximum of three digits, and automatically calculates the corresponding unit value. The units are:

B = bytes K = kilos M = megas G = gigas T = teras-o does not show buffer throttling columns.

-s continuously observe memory usage.

-t displays the memory sum column.

-V displays version information.

Example shows memory usage

# free / / display memory usage information total used free shared buffers cached Mem: 254772 184568 70204 0 5692 89892-/ + buffers/cache: 88984 165788 Swap: 524280 65116 459164 display memory usage information in the form of sum

# free-t / / query memory usage information in the form of sum total used free shared buffers cached Mem: 254772 184868 69904 0 5936 89908-/ + buffers/cache: 89024 165748 Swap: 524280 65116 459164 Total: 779052 249984 529068 periodically query memory usage message

# free-s 10 / / execute the command total used free shared buffers cached Mem: 254772 187628 67144 0 6140 89964-/ + buffers/cache: 91524 163248 Swap: 524280 65116 459164 total used free shared buffers cached Mem: 254772 187748 67024 06164 89940-/ + buffers/cache: 91644 163128 Swap: 524280 65116 459164 this article ends here. I hope the above content can be helpful to you, so that you can learn more knowledge. If you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report