Recently, Xiaobian of the System Home found that many Linux beginners don't know much about the free command. In fact, the free command under Linux is mainly used to check the current system memory usage. Let's take a look at it with Xiaobian.
free Linux command to display the idle system, used swap memory and physical memory, and is used by the kernel buffer. In the Linux system monitoring tool, the free command is one of the most frequently used commands
1. Command format:
free [parameters]
2. Command Function:
The free command displays system usage and free memory conditions, including physical memory, swap area memory, and kernel buffer memory. Shared memory will be ignored
3. Command parameters:
-b Displays memory usage in Bytes.
-k Displays memory usage in kilobytes.
-m Displays memory usage in megabytes.
-g Displays memory usage in GB.
-o Does not display the buffer adjustment column.
-s "Interval Seconds" Continuously observe memory usage.
-t Displays the memory sum column.
-V Displays version information.
4. Example:
Instance 1: Display memory usage
Command:
The code is as follows:
free
free -g< Br>
free -m
Output:
The code is as follows:
[root@SF1150 service]# free
total used free shared buffers Cached
Mem: 32940112 30841684 2098428 0 4545340 11363424
-/+ buffers/cache: 14932920 18007192
Swap: 32764556 1944984 30819572//p "p"
[root@SF1150 service]# free -g
total used free shared buffers cached
Mem: 31 29 2 0 4 10
-/+ buffers /cache: 14 17
Swap: 31 1 29"/p" "p"
[root@SF1150 service]# free -m
total used free shared buffers Cached
Mem: 32168 30119 2048 0 4438 11097
-/+ buffers/cache: 14583 17584
Swap: 31996 1899 30097
free command output Detailed content Ming:
The following is an explanation of these values:
total: Total physical memory size.
used: How old has been used.
free: How many are available.
Shared: Total memory shared by multiple processes.
Buffers/cached: The size of the disk cache.
Third line (-/+ buffers/cached):
used: How old it is.
free: How many are available.
Previous12Next Total 2 Pages
What are soft links and hard links in Linux systems? What are the differences betwe
The nl command in Linux is similar to the cat command, but the nl command will play
Among the many commands in Unix, some commands are often used, and some commands ar
Under the Linux system, the font of the Chrome browser can be rendered, which makes
Linux how to create and delete swap partitions
How to modify the character set in Linux
Linux Leap Second problem program response response slow
Modify the IP address under Linux
What should I do if there are garbled characters in Linux Chinese characters?
How to modify the time zone of CentOS6 system?
Linux uses node.js to execute commands.
CentOS automatically starts the desktop service after booting
Linux prompts when you use Mkdir can not create directory ‘test’?
How to uninstall SP3 patch in WinXP system? Three ways to uninstall the XP system patch
Win10 system can not open the solution to the software prompt file loss
How Linux mounts iso yum source in virtual machine
Windows7's top ten problems to be solved
A trick to get the win8 system wireless network often limited problem
How to disable manual search update
How to view the IP address of win7 system faster