Sanin matsakaicin bayani game da tsarin, mai amfani zai iya samun sauƙin tantance dukkan lamura a cikin aikin sa. Yana da mahimmanci sanin bayani game da girman manyan fayilolin a Linux, amma da farko kuna buƙatar yanke shawarar wace hanyar amfani da wannan bayanan.
Dubi kuma: Yadda za a gano sashin rarraba Linux
Hanyoyi don tantance girman babban fayil
Masu amfani da tsarin aiki na Linux sun san cewa yawancin ayyukan su ana kulawa da su ta hanyoyi da yawa. Haka lamarin yake tare da tantance girman babban fayil. Irin wannan, a kallon farko, karamin aiki na iya haifar da "wazo" wawa, amma umarnin da za a bayar a ƙasa zai taimaka wajen fahimtar komai dalla-dalla.
Hanyar 1: Terminal
Don samun cikakken bayani game da girman manyan folda a cikin Linux, zai fi kyau amfani da umarnin du a cikin "Terminal". Kodayake wannan hanyar na iya tsoratar da mai amfani da ƙwarewa wanda kawai ya juya zuwa Linux, ya zama cikakke don gano mahimman bayanan.
Syntax
Dukkanin tsarin amfani du ya yi kama da wannan:
du
du folda_na
du [zaɓi] folda_name
Duba kuma: Dokokin da ake yawan amfani dasu a cikin “Terminal”
Kamar yadda kake gani, ana iya gina saitin ta ta hanyoyi daban-daban. Misali, lokacin aiwatar da umarni du (ba tare da tantance manyan fayiloli da zaɓuɓɓuka ba) zaka sami bangon rubutu wanda aka jera duk girman girman manyan fayiloli na yanzu, wanda yake da wahalar fahimta.
Zai fi kyau amfani da zaɓuɓɓuka idan kuna son samun bayanan tsari, ƙari game da abin da za'a bayyana a ƙasa.
Zaɓuɓɓuka
Kafin nuna misalai na gani na umarni du Yana da kyau a lissafa zaɓuɓɓukansa don amfani da duk fasalulluka lokacin tattara bayanai game da girman manyan fayilolin.
- a - bayanin bayani akan jimlar girman fayilolin da aka sanya a cikin kundin adireshi (ana nuna jimlar girman duk fayiloli a babban fayil a ƙarshen jerin).
- --apparent-size - nuna tabbataccen adadin fayilolin da aka sanya a cikin kundayen adireshi. Sigogin wasu fayiloli a babban fayil wani lokaci ba su da inganci, abubuwa da yawa suna tasiri wannan, don haka amfani da wannan zaɓi yana taimakawa wajen tabbatar da cewa bayanan daidai ne.
- -B, --block-size = SIZE - fassara sakamakon zuwa kilobytes (K), megabytes (M), gigabytes (G), terabytes (T). Misali, umarni tare da zabi -BM zai nuna girman folda a cikin megabytes. Lura cewa lokacin amfani da dabi'u iri-iri, kuskurensu yana da mahimmanci, saboda tarawa zuwa ƙaramin lamba.
- -b - nunin bayanai a cikin bytes (daidai --apparent-size da --block-size = 1).
- tare da - nuna jimlar sakamakon yin lissafin girman babban fayil.
- -D - oda don bi kawai waɗannan hanyoyin haɗin yanar gizo waɗanda aka jera a cikin na'ura wasan bidiyo.
- --files0-daga = FILE - nuna rahoto kan amfani da faifai, wanda sunan ku zai shiga ta shafi "FILE".
- -H - daidai yake da maɓalli -D.
- -h - fassara duk dabi'u zuwa tsarin da za'a iya karantawa ta mutum ta amfani da raka'a bayanan da suka dace (kilobytes, megabytes, gigabytes da terabytes).
- --si - Kusan ya kasance daidai da zaɓi na baya, sai dai cewa yana amfani da mai rabawa daidai da dubu ɗaya.
- -k - nuna bayanai a cikin kilobytes (daidai da umarnin --block-size = 1000).
- -l - oda don ƙara dukkan bayanai a cikin shari'ar lokacin da akwai maƙallan ƙafa sama da ɗaya zuwa abu ɗaya.
- -m - nuna bayanai a cikin megabytes (kama da umarnin --block-girman-1000000).
- -L - tsananin bin alamu alamomin da aka nuna.
- -P - ya warware zaɓin da ya gabata.
- -0 - ƙare kowane layin bayanan da aka nuna tare da jaka, kuma kada ku fara sabon layin.
- -S - Lokacin ƙididdige wurin da aka mamaye, kar kayi la'akari da girman babban fayil ɗin da kansu.
- -s - nuna girman babban fayil ɗin da aka ayyana azaman hujja.
- -x - Kada ku zarce tsarin fayil ɗin da aka ƙayyade.
- --exclude = SAMARA - yi watsi da duk fayilolin da suka dace da "Sample".
- -d - saita zurfin cikin manyan fayilolin.
- - lokaci - nuna bayani game da sabon canje-canje a cikin fayiloli.
- --version - saka fasalin mai amfani du.
Yanzu, sanin duk zaɓin umarni du, za ku iya amfani da su da kansu ta hanyar yin saiti masu sauƙi don tattara bayanai.
Misalai Amfani
A ƙarshe, don haɓaka bayanan da aka karɓa, yana da kyau a bincika misalai da yawa na amfani da umarnin du.
Ba tare da shigar da ƙarin za optionsu options optionsukan ba, mai amfani zai nuna ta atomatik sunaye da girman manyan fayilolin da ke kan hanyar da aka ƙayyade, lokaci guda kuma nuna manyan fayiloli mataimakan kuma.
Misali:
du
Don nuna bayani game da babban fayil ɗin da kuke sha'awar, shigar da sunan shi a cikin yanayin umarnin. Misali:
du / gida / mai amfani / Downloads
du / gida / mai amfani / Hoto
Domin samun sauƙin fahimtar duk bayanan da aka nuna, yi amfani da zaɓi -h. Yana daidaita girman duk manyan fayiloli zuwa ɓangarorin gama gari na ma'aunin bayanan dijital.
Misali:
du -h / gida / mai amfani / Zazzagewa
du -h / gida / mai amfani / Hoto
Don cikakken rahoto game da ƙarar da babban fayil ke gudana, nuna tare da umurnin du zaɓi -s, da kuma bayan - sunan babban fayil ɗin da kuke sha'awar.
Misali:
du -s / gida / mai amfani / Zazzagewa
du -s / gida / mai amfani / Hoto
Amma zai zama mafi dacewa don amfani da zaɓuɓɓuka -h da -s tare.
Misali:
du -hs / gida / mai amfani / Zazzagewa
du -hs / gida / mai amfani / Hoto
Zabi tare da amfani dashi don nuna jimlar adadin manyan fayilolin wurin (ana iya amfani dashi tare da zaɓuɓɓuka -h da -s).
Misali:
du -chs / gida / mai amfani / Downloads
du -chs / gida / mai amfani / Hoto
Wata “babbar dabara” mai amfani wacce ba a ambata a sama ita ce zaɓi ---- max-zurfin. Tare da shi, zaku iya saita zurfin abin da mai amfani du zai bi manyan fayilolin. Misali, tare da takamaiman matakin bangare guda, za ayi duba bayanai kan girman dukkan manyan fayiloli ba tare da takamaiman bayani a wannan bangare ba, kuma za a yi watsi da manyan fayilolin da ke cikinsu.
Misali:
du -h - zurfin-zurfin = 1
A saman su ne mafi mashahuri aikace-aikace na mai amfani. du. Yin amfani da su, zaku iya cimma sakamakon da ake so - gano girman babban fayil. Idan zaɓuɓɓukan da aka yi amfani da su a cikin misalai ba su isa ku ba, to za ku iya hulɗa da sauran kai tsaye, kuna amfani da su a aikace.
Hanyar 2: Mai sarrafa fayil
Tabbas, "Terminal" yana iya ba da ɗakunan ajiya kawai game da girman manyan fayilolin, amma zai zama da wuya talakawa mai amfani ya tsara shi. Yana da mafi yawan gama gari a lura da hoto mai hoto fiye da tsarin haruffa a kan yanayin duhu. A wannan yanayin, idan kuna buƙatar sanin girman babban fayil ɗaya, mafi kyawun zaɓi zai kasance don amfani da mai sarrafa fayil, wanda aka shigar da tsoho a cikin Linux.
Lura: labarin zai yi amfani da mai sarrafa fayil ɗin Nautilus, wanda yake daidaitacce ga Ubuntu, duk da haka za a yi amfani da umarnin ga sauran manajojin, amma wurin da wasu abubuwan keɓaɓɓu keɓaɓɓu da nunirsu na iya bambanta.
Don gano girman babban fayil ɗin a Linux ta amfani da mai sarrafa fayil, bi waɗannan matakan:
- Bude mai sarrafa fayil ta danna kan gunki a kan ma'ajin aikin ko ta binciken tsarin.
- Je zuwa wurin shugabanci inda babban fayil ake so.
- Danna-dama (RMB) akan babban fayil.
- Daga cikin mahallin menu, zaɓi "Bayanai".
Bayan an yi amfani da magudin, sai taga ta bayyana a gabanku inda kuke buƙatar nemo layin “Abubuwan da ke ciki” (1), akasin hakan, za a nuna girman babban fayil ɗin. Af, bayani game da sauran sarari faifai (2).
Kammalawa
Sakamakon haka, kuna da hanyoyi guda biyu waɗanda za ku iya gano girman babban fayil a cikin tsarin ayyuka na tushen Linux. Kodayake suna bayar da irin wannan bayanan, zaɓuɓɓukan neman samunsa sun bambanta sosai. Idan kuna buƙatar gano girman babban fayil ɗaya, to, mafita mafi kyau shine don amfani da mai sarrafa fayil, kuma idan kuna buƙatar samun bayanai da yawa kamar yadda zai yiwu, to "Terminal" tare da mai amfani cikakke ne du da zabinsa.