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

(Free 명령어에 대한 전체 파라미터 옵션을 추가했어요.)
23번째 줄: 23번째 줄:
*used: 사용 메모리
*used: 사용 메모리
*free: 여유 메모리
*free: 여유 메모리
*shaerd: 공유 메모리. 프로세스, 스레드간 통신에 사용됨
*shared: 공유 메모리. 프로세스, 스레드간 통신에 사용됨
*buffers: 버퍼 메모리. I/O 버퍼. 파일 등의 입출력에 사용됨
*buffers: 버퍼 메모리. I/O 버퍼. 파일 등의 입출력에 사용됨
*cached: 캐시 메모리. 재사용에 대비하여 메모리 내용을 임시 보존
*cached: 캐시 메모리. 재사용에 대비하여 메모리 내용을 임시 보존

2019년 4월 5일 (금) 14:39 판

  다른 뜻에 대해서는 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 }}