"리눅스 free"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-<source +<syntaxhighlight , -</source> +</syntaxhighlight>))
 
(사용자 4명의 중간 판 15개는 보이지 않습니다)
1번째 줄: 1번째 줄:
{{다른뜻|Free (밴드)}}
==개요==
;free
;free
;/usr/bin/free
*여유, 사용 메모리양을 보여주는 리눅스 명령어


==명령어==
==명령어==
아무 옵션도 주지 않으면 KB 단위이다. 주로 쓰는 것은 -m (MB 단위)일 것이다.
아무 옵션도 주지 않으면 KB 단위이다. 주로 쓰는 것은 -m (MB 단위)일 것이다. '''-g'''을 통해서 GB 단위로도 볼 수가 있다.
<source lang='bash'>
<syntaxhighlight lang='bash'>
free -m
free -m
</source>
</syntaxhighlight>


==실행예시==
==실행예시==
<source lang='dos'>
<syntaxhighlight lang='console'>
[root@jmnote ~]# free -m
[root@zetawiki ~]# free -m
             total      used      free    shared    buffers    cached
             total      used      free    shared    buffers    cached
Mem:          1024      1015          8          0          1        510
Mem:          1024      1015          8          0          1        510
-/+ buffers/cache:        503        520
-/+ buffers/cache:        503        520
Swap:        1983        59      1924
Swap:        1983        59      1924
</source>
</syntaxhighlight>


*total: 전체 메모리
{| class='wikitable'
*used: 사용 메모리
|-
*free: 여유 메모리
| total || 전체 메모리
*shaerd: 공유 메모리. 프로세스, 스레드간 통신에 사용됨
|-
*buffers: 버퍼 메모리. I/O 버퍼. 파일 등의 입출력에 사용됨
| used || 사용 메모리
*cached: 캐시 메모리. 재사용에 대비하여 메모리 내용을 임시 보존
|-
| free || 여유 메모리
|-
| shared || 공유 메모리. 프로세스, 스레드간 통신에 사용됨
|-
| buffers || 버퍼 메모리. I/O 버퍼. 파일 등의 입출력에 사용됨
|-
| cached || 캐시 메모리. 재사용에 대비하여 메모리 내용을 임시 보존
|}
 
==이 명령에 대한 전체 사용법 (free --help)==
<syntaxhighlight lang='console'>
soto@soto:~$ free --help
 
Usage:
free [options]
 
Options:
-b, --bytes        show output in bytes (바이트 단위로 출력)
-k, --kilo          show output in kilobytes (KB단위로 출력)
-m, --mega          show output in megabytes (MB단위로 출력)
-g, --giga          show output in gigabytes (GB단위로 출력)
    --tera          show output in terabytes (TB 단위로 출력)
-h, --human        show human-readable output (가독성 옵션)
    --si            use powers of 1000 not 1024 (1024단위 대신 1000단위 사용)
-l, --lohi          show detailed low and high memory statistics (더 자세한 메모리 사용률 보기)
-t, --total        show total for RAM + swap (SWAP 영역을 포함하여 출력)
-s N, --seconds N  repeat printing every N seconds (N초마다 계속 출력)
-c N, --count N    repeat printing N times, then exit (N번 출력하고 종료)
-w, --wide          wide output (wide{X축 증가} 옵션)
 
    --help    display this help and exit (이 메세지를 출력)
-V, --version  output version information and exit (Free 명령어의 버전 출력 후 종료)
 
For more details see free(1).
</syntaxhighlight>


==같이 보기==
==같이 보기==
*[[리눅스 메모리 사용률 (명목 vs 실질)]]
*[[리눅스 메모리 사용률 (명목 vs 실질)]]
*[[리눅스 캐시 메모리 비우기]]
*[[/proc/meminfo]]
*[[ps]]
*[[vmstat]]
*[[top]]


[[분류: 리눅스]]
[[분류: procps]]
[[분류: /usr/bin]]

2022년 8월 1일 (월) 14:06 기준 최신판

  다른 뜻에 대해서는 Free (밴드) 문서를 참조하십시오.

1 개요[ | ]

free
/usr/bin/free
  • 여유, 사용 메모리양을 보여주는 리눅스 명령어

2 명령어[ | ]

아무 옵션도 주지 않으면 KB 단위이다. 주로 쓰는 것은 -m (MB 단위)일 것이다. -g을 통해서 GB 단위로도 볼 수가 있다.

free -m

3 실행예시[ | ]

[root@zetawiki ~]# free -m
             total       used       free     shared    buffers     cached
Mem:          1024       1015          8          0          1        510
-/+ buffers/cache:        503        520
Swap:         1983         59       1924
total 전체 메모리
used 사용 메모리
free 여유 메모리
shared 공유 메모리. 프로세스, 스레드간 통신에 사용됨
buffers 버퍼 메모리. I/O 버퍼. 파일 등의 입출력에 사용됨
cached 캐시 메모리. 재사용에 대비하여 메모리 내용을 임시 보존

4 이 명령에 대한 전체 사용법 (free --help)[ | ]

soto@soto:~$ free --help

Usage:
 free [options]

Options:
 -b, --bytes         show output in bytes (바이트 단위로 출력)
 -k, --kilo          show output in kilobytes (KB단위로 출력)
 -m, --mega          show output in megabytes (MB단위로 출력)
 -g, --giga          show output in gigabytes (GB단위로 출력)
     --tera          show output in terabytes (TB 단위로 출력)
 -h, --human         show human-readable output (가독성 옵션)
     --si            use powers of 1000 not 1024 (1024단위 대신 1000단위 사용)
 -l, --lohi          show detailed low and high memory statistics (더 자세한 메모리 사용률 보기)
 -t, --total         show total for RAM + swap (SWAP 영역을 포함하여 출력)
 -s N, --seconds N   repeat printing every N seconds (N초마다 계속 출력)
 -c N, --count N     repeat printing N times, then exit (N번 출력하고 종료)
 -w, --wide          wide output (wide{X축 증가} 옵션)

     --help     display this help and exit (이 메세지를 출력)
 -V, --version  output version information and exit (Free 명령어의 버전 출력 후 종료)

For more details see free(1).

5 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}