DU siv dab tsi?
DU siv dab tsi?

Video: DU siv dab tsi?

Video: DU siv dab tsi?
Video: Tshuaj theem vim li cas thiaj tau nqi ?/ Siv kho mob dab tsi?/paris polyphylla use for? 2024, Kaum ib hlis
Anonim

du ntsuas cov ntaub ntawv qhov chaw hauv 512-byte units . Qhov kev sim ua kom tshaj tawm cov ntaub ntawv qhov chaw siv, yog tias ua tau. Qhov no txhais tau hais tias ntawm UNIX systems tiag tiag cov ntaub ntawv qhov chaw siv rau cov ntaub ntawv sparse; ntawm 7/2008R2/8/202016-10-12/2019 systems tiag tiag cov ntaub ntawv qhov chaw siv rau compressed ntaub ntawv.

Kuj paub, du lus txib ua dab tsi?

Lub Linux du ” (Kev Siv Disk) yog tus qauv Unix/Linux lus txib , siv los xyuas cov ntaub ntawv ntawm kev siv disk ntawm cov ntaub ntawv thiab cov npe ntawm lub tshuab. Cov du lus kuj qhia txog cov ntaub ntawv thiab cov npe loj hauv ib qho recursively.

Tom qab, lo lus nug yog, DU yog dab tsi hauv bash? du hais kom ua hauv Linux nrog piv txwv. du hais kom ua, luv luv rau kev siv disk, yog siv los kwv yees qhov chaw siv cov ntaub ntawv. Cov du cov lus txib tuaj yeem siv los taug qab cov ntaub ntawv thiab cov npe uas siv ntau qhov chaw ntawm hard disk drive.

Yog li ntawd, Du ua haujlwm li cas?

1 Teb. du siv stat(2) txhawm rau nrhiav tus naj npawb ntawm cov blocks siv los ntawm cov ntaub ntawv. Yog tias koj khiav stat loj koj yuav tsum pom tias tus naj npawb ntawm cov blocks phim tus lej muab los ntawm du . Koj tuaj yeem yuam du suav bytes siv qhov kev xaiv -b; ces nws cov zis sib tw ls 's.

Dab tsi yog qhov txawv ntawm DU thiab DF?

DF (disk free) saib disk siv blocks ncaj qha rau hauv filesystem metadata. DU (kev siv disk) yog siv ntau tshaj 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: