Df hais kom ua dab tsi?
Df hais kom ua dab tsi?

Video: Df hais kom ua dab tsi?

Video: Df hais kom ua dab tsi?
Video: Cem Kom Tsim Nyog qhov koj yuav kuv los by Nkauj noog Hawj 2024, Kaum ib hlis
Anonim

df ua (cov ntawv luv rau disk dawb) yog tus qauv Unix lus txib siv los tso saib tus nqi ntawm qhov chaw muaj disk rau cov ntaub ntawv kaw lus uas tus neeg siv tau txais kev nyeem ntawv tsim nyog. df ua feem ntau yog siv los ntawm statfs lossis statvfs system hu.

Cov lus nug tseem yog, df hais kom ua dab tsi hauv Linux?

Cov df lus a lus txib kab hluav taws xob rau kev tshaj tawm cov ntaub ntawv system disk chaw siv. Nws ua tau siv los qhia qhov chaw dawb ntawm Unix lossis Linux computer thiab nkag siab txog cov filesystems uas tau teeb tsa. Nws txhawb kev qhia kev siv hauv Bytes, Megabytes thiab Gigabytes.

Tom qab ntawd, lo lus nug yog, DF suav nrog qhov chaw siv li cas? Yuav nrhiav tau dab tsi noj li siv disk qhov chaw , siv du (disk kev siv ). Hom df ua thiab nias nkag rau hauv lub qhov rais Bash davhlau ya nyob twg los pib. Koj yuav pom ntau cov zis zoo ib yam li lub screenshot hauv qab no. Siv df ua tsis muaj kev xaiv yuav tso saib muaj thiab siv qhov chaw rau tag nrho cov mounted filesystems.

Hais txog qhov no, DF H hais kom ua yog dab tsi?

12 Muaj txiaj ntsig “ df ua ” Cov lus txib mus xyuas Disk Space hauv Linux. Kev siv '- h ' parameter nrog ( df ua - h ) yuav qhia cov ntaub ntawv system disk chaw txheeb cais hauv "tib neeg nyeem tau" hom, txhais tau tias nws muab cov ntsiab lus hauv bytes, megabytes, thiab gigabyte.

Dab tsi yog qhov txawv ntawm DF thiab DF?

DF (disk free) saib disk siv blocks ncaj qha rau hauv filesystem metadata. DU (disk siv) yog siv ntau dua df ua nyob rau hauv ib hnub rau ib hnub project raws li nws qhia tau hais tias cov kev siv disk raws li ib theem directory. Hauv paus, df ua nyeem cov superblock nkaus xwb thiab tso siab rau nws kiag li. du nyeem txhua yam khoom thiab suav lawv.

Pom zoo: