Linux Common Commands (i)

Source: Internet
Author: User

Linux command is our basic skills to use and maintain the Linux operating system, when you master the basic command, you can efficiently and quickly complete the task, the following commands are the common commands summarized by themselves, mainly for their own review and summary, but also to share your love Linux operating system friends.

The Free command displays the number of unused and used memory in the current system, and displays information such as memory buffers used by the kernel.

Usage: free [options]

Options:

-B: Displays memory usage in bytes;

-K: Displays memory usage in kilobytes;

-M: Displays memory usage in megabytes;

-O: Do not display buffer adjustment columns;

-s< interval seconds;: Continuous observation of memory usage;

-T: Displays the sum of memory columns;

-V: Displays version information.

Example: Free-m

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/84/90/wKioL1eUyUKBXo0hAAAlcBuyKk4413.png "title=" QQ picture 20160724215658.png "alt=" Wkiol1euyukbxo0haaalcbuykk4413.png "/>

All of the above information can be divided into 3 parts:

(1) Use of memory:

Total: Represents the amount of physical memory;

Used: Represents the physical memory already used;

Free: Represents the remaining physical memory;

shared: not currently obsolete;

Buffers buffer: number of cache memory;

Cached Page: The number of cache memory.

The physical relationship that exists: Total=used+free.

(2) The relationship between buffers and the cache:

(-buffers/cache) used memory: The first part of the Mem line in used–buffers–cached

(+buffers/cache) Free Memory: The first part of the MEM line Free + buffers + Cached

(3) Swap usage.




Linux Common Commands (i)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.