Home  >  Article  >  Operation and Maintenance  >  What is the Linux memory viewing command?

What is the Linux memory viewing command?

尚
Original
2020-03-03 11:11:385875browse

What is the Linux memory viewing command?

Under Linux, we often use the top command to view system processes. Top can also display system memory. The special tool we commonly use to view content under Linux is the free command.

Recommendation: Linux self-study video

Detailed explanation of the memory viewing command free under Linux:

We generally use the free command to view memory under Linux:

$ free
             total       used       free     shared    buffers     cached
Mem:       3266180    3250004      16176          0     110652    2668236
-/+ buffers/cache:     471116    2795064
Swap:      2048276      80160    1968116

The following is an explanation of the output of the memory view free command:

total: the total size of physical memory.

used: How big has been used.

free: How many are available.

Shared: The total amount of memory shared by multiple processes.

Buffers/cached: The size of the disk cache.

The third line (-/ buffers/cached):

used: How big has been used.

free: How many are available.

PHP Chinese website, a large number of Introduction to Programming tutorials, welcome to learn!

The above is the detailed content of What is the Linux memory viewing command?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn