IT 공부내용 정리/Linux

터미널 명령어 - df 파일 시스템별 디스크 사용량을 확인하고 싶을 때

따뜻한 차가움 2025. 3. 21. 14:32

사용 버전 : Linux 우분투(레드햇 계열) 24.04.01 LTS 버전
사용한 시스템 지역/언어 : 대한민국/한글

man  원문

더보기

DF(1)                            User Commands                           DF(1)

NAME
       df - report file system space usage

SYNOPSIS
       df [OPTION]... [FILE]...

DESCRIPTION
       This  manual  page  documents  the  GNU version of df.  df displays the
       amount of space available on the file system containing each file  name
       argument.   If  no  file name is given, the space available on all cur‐
       rently mounted file systems is shown.  Space is shown in 1K  blocks  by
       default,  unless  the  environment  variable POSIXLY_CORRECT is set, in
       which case 512-byte blocks are used.

       If an argument is the absolute file name of a device node containing  a
       mounted  file  system, df shows the space available on that file system
       rather than on the file system containing the device node.   This  ver‐
       sion  of  df cannot show the space available on unmounted file systems,
       because on most kinds of systems doing so requires  non-portable  inti‐
       mate knowledge of file system structures.

OPTIONS
       Show  information  about the file system on which each FILE resides, or
       all file systems by default.

       Mandatory arguments to long options are  mandatory  for  short  options
       too.

       -a, --all
              include pseudo, duplicate, inaccessible file systems

       -B, --block-size=SIZE
              scale  sizes  by  SIZE  before printing them; e.g., '-BM' prints
              sizes in units of 1,048,576 bytes; see SIZE format below

       -h, --human-readable
              print sizes in powers of 1024 (e.g., 1023M)

       -H, --si
              print sizes in powers of 1000 (e.g., 1.1G)

       -i, --inodes
              list inode information instead of block usage

       -k     like --block-size=1K

       -l, --local
              limit listing to local file systems

       --no-sync
              do not invoke sync before getting usage info (default)

       --output[=FIELD_LIST]
              use the output format defined by FIELD_LIST, or print all fields
              if FIELD_LIST is omitted.

       -P, --portability
              use the POSIX output format

       --sync invoke sync before getting usage info

       --total
              elide all entries insignificant to available space, and  produce
              a grand total

       -t, --type=TYPE
              limit listing to file systems of type TYPE

       -T, --print-type
              print file system type

       -x, --exclude-type=TYPE
              limit listing to file systems not of type TYPE

       -v     (ignored)

       --help display this help and exit

       --version
              output version information and exit

       Display   values  are  in  units  of  the  first  available  SIZE  from
       --block-size, and the DF_BLOCK_SIZE, BLOCK_SIZE and BLOCKSIZE  environ‐
       ment  variables.   Otherwise,  units  default  to 1024 bytes (or 512 if
       POSIXLY_CORRECT is set).

       The SIZE argument is an integer and  optional  unit  (example:  10K  is
       10*1024).   Units are K,M,G,T,P,E,Z,Y,R,Q (powers of 1024) or KB,MB,...
       (powers of 1000).  Binary prefixes can be used, too: KiB=K, MiB=M,  and
       so on.

       FIELD_LIST  is a comma-separated list of columns to be included.  Valid
       field names are: 'source', 'fstype', 'itotal', 'iused', 'iavail',  'ip‐
       cent',  'size', 'used', 'avail', 'pcent', 'file' and 'target' (see info
       page).

AUTHOR
       Written by Torbjorn Granlund, David MacKenzie, and Paul Eggert.

REPORTING BUGS
       GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
       Report any translation bugs to <https://translationproject.org/team/>

COPYRIGHT
       Copyright © 2023 Free Software Foundation, Inc.   License  GPLv3+:  GNU
       GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
       This  is  free  software:  you  are free to change and redistribute it.
       There is NO WARRANTY, to the extent permitted by law.

SEE ALSO
       Full documentation <https://www.gnu.org/software/coreutils/df>
       or available locally via: info '(coreutils) df invocation'

GNU coreutils 9.4                 April 2024                             DF(1)

man  번역기 번역본

더보기

DF (1) 사용자 명령 DF (1)

이름
       DF- 보고서 파일 시스템 공간 사용

개요
       DF [옵션] ... [파일] ...

설명
       이 설명서 페이지는 DF의 GNU 버전을 문서화합니다.  DF는
       각 파일 이름을 포함하는 파일 시스템에서 사용 가능한 공간 금액
       논쟁.   파일 이름이 주어지지 않으면 모든 cur-에서 사용할 수있는 공간
       Reltly Mounted File Systems가 표시됩니다.  공간은 1k 블록으로 표시됩니다
       환경 변수 posixly_correct가 설정되지 않는 한 기본값
       이 경우 512 바이트 블록이 사용됩니다.

인수가 포함 된 장치 노드의 절대 파일 이름 인 경우
       마운트 파일 시스템, DF는 해당 파일 시스템에서 사용 가능한 공간을 보여줍니다.
       장치 노드를 포함하는 파일 시스템보다는   이 ver-
       DF의 sion은 노운트 파일 시스템에서 사용 가능한 공간을 보여줄 수 없습니다
       그렇게하는 대부분의 시스템에서는 포트가 불가능한 정보가 필요하기 때문입니다.
       파일 시스템 구조에 대한 지식.

옵션
       각 파일이 상주하는 파일 시스템에 대한 정보를 표시하거나
       기본적으로 모든 파일 시스템.

긴 옵션에 대한 필수 주장은 짧은 옵션에 필수적입니다.
       도.

-a, -모두
              의사, 복제, 액세스 할 수없는 파일 시스템을 포함하십시오

-B, -Block-size = size
              인쇄하기 전에 크기별로 규모 크기; 예를 들어, '-BM'인쇄
              1,048,576 바이트 단위의 크기; 아래 크기 형식을 참조하십시오

-h,-인간 읽기 가능
              1024의 전력으로 인쇄 크기 (예 : 1023m)

-h, -si
              1000의 전력으로 인쇄 크기 (예 : 1.1g)

-i, ---- 오노 드
              블록 사용 대신 inode 정보를 나열하십시오

-K like -Block-size = 1k

-L, -로컬
              로컬 파일 시스템으로 목록을 제한합니다

-동기화
              사용법 정보를 얻기 전에 동기화를 호출하지 마십시오 (기본값)

-output [= field_list]
              Field_List로 정의 된 출력 형식을 사용하거나 모든 필드 인쇄
              Field_list가 생략 된 경우.

-P, -포트 가능성
              POSIX 출력 형식을 사용하십시오

-Sync 사용 정보를 얻기 전에 동기화를 호출합니다

--총
              사용 가능한 공간에 미미한 모든 항목을 피하고 생산하십시오
              총계

-t, -타입 = 유형
              유형 유형의 파일 시스템으로 목록을 제한합니다

-t, -print-type
              파일 시스템 유형을 인쇄합니다

-x, -exclude-type = 유형
              유형 유형이 아닌 파일 시스템으로 목록을 제한합니다

-V (무시)

-헬프이 도움말과 종료를 표시합니다

--버전
              출력 버전 정보 및 종료

디스플레이 값은 첫 번째 사용 가능한 크기의 단위입니다.
       -Block-size 및 df_block_size, block_size 및 blocksize 환경-
       변수.   그렇지 않으면 단위 기본값 1024 바이트 (또는 512 인 경우
       posixly_correct가 설정되었습니다).

크기 인수는 정수 및 선택적 단위입니다 (예 : 10K는 IS
       10*1024).   단위는 k, m, g, t, p, e, z, y, q, q (1024의 전력) 또는 kb, mb, ...
       (1000의 힘).  이진 접두사도 사용할 수 있습니다 : kib = k, mib = m 및
       곧.

Field_list는 포함 할 쉼표로 구분 된 열 목록입니다.  유효한
       필드 이름은 : '소스', 'fstype', 'itotal', 'iused', 'iavail', 'ip-
       Cent ','size ','size ','avail ','pcent ','file '및'target '(정보 참조
       페이지).

작가
       Torbjorn Granlund, David Mackenzie 및 Paul Eggert가 작성했습니다.

보고 버그
       GNU Coreutils 온라인 도움말 : <https://www.gnu.org/software/coreutils/>
       번역 버그를 <https://translationproject.org/team/>에보고하십시오

저작권
       저작권 © 2023 Free Software Foundation, Inc. 라이센스 GPLV3+: GNU
       GPL 버전 3 이상 <https://gnu.org/licenses/gpl.html>.
       이것은 무료 소프트웨어입니다. 자유롭게 변경하고 재분배 할 수 있습니다.
       법률에 의해 허용되는 범위 내에서 보증은 없습니다.

참조하십시오
       전체 문서 <https://www.gnu.org/software/coreutils/df>
       또는 Info '(Coreutils) DF 호출을 통해 로컬로 사용 가능

GNU Coreuutils 2024 년 4 월 9.4 DF (1)

 

형태 : df [옵션] [마운트포인트]

기능 : [마운트포인트]에 해당하는 저장소의 사용량을 byte 단위로 보여준다.

 

옵션

-a : 모든 마운트포인트에 대해서 디스크 사용량을 확인한다.

-k : 디스크 사용량을 kb 단위로 표기한다.

-m : 디스크 사용량을 mb 단위로 표기한다.

-h : 디스크 사용량을 적당한 단위(G, M, K)로 표기한다.

-t [파일시스템] : 지정한 [파일시스템] 종류에 해당하는 디스크의 사용량을 출력한다.

-T : 용량을 표기할 때 파일시스템의 종류를 같이 표기한다.