Mun hada kwakwalwa guda biyu a cikin cibiyar sadarwa ta gida

Sanin iyakar bayanai game da tsarin, mai amfani zai iya sauƙi ƙayyade duk hanyoyi a cikin aikinta. Yana da mahimmanci sanin bayani game da girman manyan fayiloli a cikin Linux, amma da farko kana buƙatar yanke shawara yadda za'a samu wannan bayanan.

Duba kuma: Yadda za a gano fitowar Linux

Hanyoyi don ƙayyade girman fayil

Masu amfani da tsarin sarrafawa ta Linux sun san mafi yawancin ayyuka a cikinsu an warware su a hanyoyi da dama. Saboda haka a cikin yanayin da aka ƙayyade girman babban fayil ɗin. Irin wannan aikin da ba shi da mahimmanci zai iya gabatar da "farawa" a cikin lalata, amma umarnin da aka ba a kasa zai taimaka wajen gane duk abin daki-daki.

Hanyar 1: Terminal

Don samun cikakken bayani game da girman fayiloli a cikin Linux, yana da kyau a yi amfani da umarnin du a "Terminal". Ko da yake wannan hanyar na iya tsoratar da mai amfani da ba a fahimta wanda ya canzawa zuwa Linux kawai ba, yana da cikakke don gano bayanan da ya dace.

Syntax

Dukan tsarin mai amfani du kama da wannan:

du
du folder_name
du [mai suna] folder_name

Duba kuma: Sau da yawa ana amfani da umarnin a "Terminal"

Kamar yadda kake gani, ana iya gina haɗin ta a hanyoyi daban-daban. Alal misali, lokacin aiwatar da umurnin du (ba tare da tantance babban fayil da zaɓin ba) za ka sami bango na rubutun rubutu da yawancin manyan fayiloli a cikin shugabanci na yanzu, wanda ba shi da mahimmanci ga fahimta.

Zai fi kyau a yi amfani da zaɓuɓɓuka idan kana so ka samu bayanan da aka tsara, wanda za'a tattauna a ƙarin bayani a ƙasa.

Zabuka

Kafin gabatar da misalai daga cikin tawagar du Yana da kyau ya lissafa zaɓuɓɓuka don amfani da duk abubuwan da za a iya yi a yayin tattara bayanai game da girman manyan fayiloli.

  • -a - nuna bayanan game da yawan girman fayiloli da aka sanya a cikin shugabanci (a ƙarshen lissafin ya nuna jimlar girma na duk fayilolin a babban fayil).
  • - girman-girma - nuna ainihin ƙarar fayilolin da aka sanya a cikin jagorar. Siffofin wasu fayiloli a cikin babban fayil suna wani lokuta ba daidai ba, dalilai masu yawa suna tasiri wannan, saboda haka ta yin amfani da wannan zaɓi yana taimaka wajen tabbatar da cewa bayanan daidai ne.
  • -B, --block-size = SIZE - fassara sakamakon zuwa kilobytes (K), megabytes (M), gigabytes (G), terabytes (T). Alal misali, umurnin tare da zabin -BM zai nuna girman manyan fayiloli a cikin megabytes. Yi la'akari da cewa lokacin amfani da lambobi daban-daban, darajar suna da kuskure, saboda tasowa zuwa lambar ƙananan lamba.
  • -b - nuna bayanan in bytes (daidai da - girman-girma kuma --block-size = 1).
  • -with - nuna yawan adadin babban fayil.
  • -D - umarni don biyan waɗannan alaƙa da aka lissafa a cikin na'ura.
  • --files0-daga = FILE - nuna rahoton game da amfani da faifai, wanda sunanka zai shigar da shi a cikin "FILE" shafi.
  • -H - daidai da maɓallin -D.
  • -h - maida duk dabi'u zuwa tsarin mutum wanda za'a iya iya yin amfani da shi ta amfani da raka'a bayanai masu dacewa (kilobytes, megabytes, gigabytes, da terabytes).
  • --si - kusan daidai da zaɓi na karshe, sai dai cewa yana amfani da mai rarraba daidai da dubu.
  • -k - nuna bayanai a kilobytes (daidai da umurnin --block-size = 1000).
  • -l - Umurni don ƙara dukkan bayanai a cikin yanayin lokacin da akwai kalmomi fiye da ɗaya akan wannan abu.
  • -m - nuna bayanai a cikin megabytes (kama da umurnin --block-size-1000000).
  • -L - bin biyan alaƙa da aka kwatanta.
  • -P - cancanta zaɓi na baya.
  • -0 - ƙare kowane layi na bayanai tare da byte maras kyau, kuma kada ka fara sabon layi.
  • -S - lokacin da aka kirkiro sararin samaniya, kada ka la'akari girman girman fayilolin da kansu.
  • -s - nuna kawai girman babban fayil ɗin da ka ƙayyade azaman gardama.
  • -x - Kada ku wuce bayanan fayil din.
  • --exclude = SAMPLE - watsi da duk fayilolin da suka dace da "Misalin".
  • -d - saita zurfin bin manyan fayiloli.
  • - lokaci - nuna bayanan game da canje-canjen kwanan nan a fayiloli.
  • - juyawa - saka bayanin mai amfani du.

Yanzu, sanin dukkanin zaɓuɓɓukan umarni du, za ku iya yin amfani da su ta hanyar yin amfani da su, ta hanyar samar da saituna mai mahimmanci don tattara bayanai.

Misalan amfani

A ƙarshe, don ƙarfafa bayanan da aka karɓa, yana da daraja la'akari da wasu misalai na yin amfani da umurnin du.

Ba tare da shigar da ƙarin zaɓuɓɓuka ba, mai amfani zai nuna sunaye da girman manyan fayiloli tare da hanyar da aka ƙayyade, a lokaci guda kuma nuna mafin fayiloli.

Alal misali:

du

Don nuna bayanan game da babban fayil na sha'awa a gare ku, shigar da suna a cikin mahallin umarnin. Alal misali:

du / gida / mai amfani / Downloads
du / gida / mai amfani / Images

Don yin sauƙi don gane duk bayanin fitarwa, amfani da wannan zaɓi -h. Zai daidaita girman dukan manyan fayiloli zuwa raɗaɗɗɗan na'urori na auna bayanai na dijital.

Alal misali:

du -h / gida / mai amfani / Downloads
du -h / gida / mai amfani / Images

Don cikakken rahoto game da ƙarar da ake ciki ta wani babban fayil, saka tare da umurnin du wani zaɓi -s, da kuma bayan - sunan babban fayil da kake sha'awar.

Alal misali:

du -s / gida / mai amfani / Downloads
du -s / gida / mai amfani / Images

Amma zai zama mafi dace don amfani da zaɓuɓɓuka. -h kuma -s tare

Alal misali:

du -hs / gida / mai amfani / Downloads
du -hs / gida / mai amfani / Images

Zaɓi -with An yi amfani dasu don nuna yawan adadin sararin samaniya ta wurin manyan fayiloli (ana iya amfani dashi tare da zabin -h kuma -s).

Alal misali:

du -chs / gida / mai amfani / Downloads
du -chs / gida / mai amfani / Images

Wani amfani mai mahimmanci mai mahimmanci, wanda ba'a ambata ba a sama, shine zaɓi ---- max-zurfin. Tare da shi, zaka iya saita zurfin da mai amfani du zai bi manyan fayiloli. Alal misali, a ƙayyadadden ƙayyadaddun rabo na ɗaya naúrar, bayanan da aka ƙayyade a wannan ɓangaren za a kalli, kuma za a manta da manyan fayiloli a cikinsu.

Alal misali:

du -h --max-zurfin = 1

A sama an bai wa masu amfani da aikace-aikacen masu amfani. du. Amfani da su, zaka iya cimma sakamakon da ake so - gano girman girman fayil ɗin. Idan zaɓuɓɓuka da aka yi amfani da su a misalai suna da alaka da ku kadan, za ku iya yin hulɗa da wasu, kuyi amfani da su a aikace.

Hanyar 2: Mai sarrafa fayil

Hakika, "Ƙarshen" yana iya bayar da cikakken bayani game da girman manyan fayiloli, amma zai zama da wuya ga mai yin amfani da shi don kwatanta shi. Yana da yawanci don kallon kallo mai nuna hoto, maimakon saitin haruffan a cikin duhu. A wannan yanayin, idan kana buƙatar sanin girman ɗayan fayil ɗaya, zaɓin mafi kyau zai kasance don yin amfani da mai sarrafa fayil, wanda aka shigar da shi ta hanyar tsoho a cikin Linux.

Lura: Wannan labarin zai yi amfani da mai sarrafa fayil na Nautilus, wanda ya dace da Ubuntu, amma umarnin zai dace da sauran manajoji, kawai saɓin wasu abubuwa masu nuni da nuni na iya bambanta.

Don gano girman babban fayil a cikin Linux ta amfani da mai sarrafa fayil, bi wadannan matakai:

  1. Bude fayil din mai sarrafawa ta danna kan gunkin kan taskbar ko ta binciken tsarin.
  2. Gudura zuwa jagorar inda aka ajiye babban fayil ɗin.
  3. Danna-dama (RMB) akan babban fayil.
  4. Daga mahallin mahallin zaɓi zaɓi abu "Properties".

Bayan manipulations da ka yi, taga zai bayyana a gabanka inda kake buƙatar samun kirtani "Abubuwan da ke ciki" (1), akasin haka zai zama girman babban fayil ɗin. Ta hanyar, a ƙasa za su kasance bayani game da sauran sararin samaniya na sarari (2).

Kammalawa

A sakamakon haka, kana da hanyoyi biyu da zaka iya gano girman babban fayil a cikin tsarin sarrafawa na Linux. Kodayake suna samar da wannan bayani, zaɓuɓɓukan don samun shi sun bambanta sosai. Idan kana buƙatar sauri gano girman ɗayan fayil daya, sa'an nan kuma mafita mai kyau zai zama mai sarrafa fayil, kuma idan kana buƙatar samun bayanai mai yawa kamar yadda zai yiwu, to, Terminal tare da mai amfani zaiyi aiki lafiya du da zaɓuɓɓuka.