리눅스 메모리 사용량 확인 명령어 free 매뉴얼

현업에서는

free -m -t

이렇게 많이들 사용합니다.




[root@DIM ~]# free --help
free: invalid option -- -
usage: free [-b|-k|-m|-g] [-l] [-o] [-t] [-s delay] [-c count] [-V]
  -b,-k,-m,-g show output in bytes, KB, MB, or GB
  -l show detailed low and high memory statistics
  -o use old format (no -/+buffers/cache line)
  -t display total for RAM + swap
  -s update every [delay] seconds
  -c update [count] times
  -V display version information and exit
[root@DIM ~]# man free
FREE(1)                       Linux User¡¯s Manual                      FREE(1)

NAME
       free - Display amount of free and used memory in the system

SYNOPSIS
       free [-b | -k | -m] [-o] [-s delay ] [-t] [-V]

DESCRIPTION
       free  displays the total amount of free and used physical and swap memory in the system, as well as the buffers
       used by the kernel.  The shared memory column should be ignored; it is obsolete.

   Options
       The -b switch displays the amount of memory in bytes; the -k switch (set by default) displays it in  kilobytes;
       the -m switch displays it in megabytes.

       The -t switch displays a line containing the totals.

       The  -o  switch disables the display of a "buffer adjusted" line.  If the -o option is not specified, free sub-
       tracts buffer memory from the used memory and adds it to the free memory reported.

       The -s switch activates continuous polling delay seconds apart. You may actually  specify  any  floating  point
       number for delay, usleep(3) is used for microsecond resolution delay times.

       The -V displays version information.

FILES
       /proc/meminfo-- memory information

SEE ALSO
       ps(1), slabtop(1), vmstat(8), top(1)

AUTHORS
       Written by Brian Edmonds.

       Send bug reports to <albert@users.sf.net>

Cohesive Systems                 20 Mar 1993                           FREE(1)
[root@DIM ~]#
[root@DIM ~]#
[root@DIM ~]# free -m -t
             total       used       free     shared    buffers     cached
Mem:          3546        779       2766          0        133        279
-/+ buffers/cache:        366       3179
Swap:            0          0          0
Total:        3546        779       2766
[root@DIM ~]#

댓글을 달아 주세요

비밀글 (Serect)
댓글 달기 (Submit)