Timagwirizanitsa makompyuta awiri ku intaneti

Podziwa zambiri zokhudza dongosololi, wogwiritsa ntchitoyo adzatha kudziwa mosavuta mawonekedwe onse ogwira ntchito yake. Ndifunikanso kudziwa zambiri zokhudza kukula kwa mafayilo a Linux, koma choyamba muyenera kusankha momwe mungagwiritsire ntchito detayi kuti mupeze deta iyi.

Onaninso: Mmene mungapezere kugawa kwa Linux

Njira zowunikira kukula kwa foda

Ogwiritsa ntchito machitidwe opangira Linux amadziwa kuti zochita zambiri mwa iwo zimathetsedwa m'njira zingapo. Choncho poyerekeza kukula kwa foda. Ntchito yooneka ngati yopanda phindu ingathe kuwonetsa "oyamba" kukhala wodwala, koma malangizo omwe aperekedwa m'munsimu athandiza kumvetsa zonse mwatsatanetsatane.

Njira 1: Kutseka

Kuti mudziwe zambiri za kukula kwa mafoda ku Linux, ndi bwino kugwiritsa ntchito lamulo du mu "Terminal". Ngakhale kuti njira iyi ingawopsyeze munthu wosadziwa zambiri yemwe wasintha kumene ku Linux, ndizotheka kudziwa zambiri zofunika.

Syntax

Zonsezi ndizofunikira du zikuwoneka ngati izi:

du
duda_nkhani
du [option] folder_name

Onaninso: Amagwiritsidwe ntchito kawirikawiri mu "Terminal"

Monga mukuonera, mawu omasuliridwawo akhoza kumangidwa m'njira zosiyanasiyana. Mwachitsanzo, pochita lamulo du (popanda kufotokoza foda ndi kusankha) mudzalandira khoma la zolemba pamndandanda wa kukula kwa mafoda onse m'ndandanda yamakono, zomwe ziri zosokoneza kwambiri pakuwona.

Ndi bwino kugwiritsira ntchito njirazo ngati mukufuna kupanga deta, zomwe zidzakambidwe mwatsatanetsatane.

Zosankha

Musanawonetse zitsanzo zotsanzira za timuyi du Ndikofunika kulemba zomwe mungasankhe kuti mugwiritse ntchito zonse zomwe mungathe polemba zokhudzana ndi kukula kwa mafoda.

  • -a - onetsani zokhudzana ndi kukula kwa mafayilo omwe aikidwa muzolonjezedwa (pamapeto pa mndandanda ukuwonetsera kuwerengera kwa mafayilo onse mu foda).
  • - kukula kwake --wonetsani voliyumu yeniyeni ya mafayela omwe anaikidwa mkati mwawongolera. Zomwe maofesi ena ali mu foda nthawi zina sizilondola, zifukwa zambiri zimakhudza izi, kotero kugwiritsa ntchito kumathandiza kutsimikizira kuti deta ili yolondola.
  • -B, --block-size = SIZE - kumasulira zotsatira mu kilobytes (K), megabytes (M), gigabytes (G), terabytes (T). Mwachitsanzo, lamulo ndi njira -BM adzawonetsa kukula kwa mafoda a megabytes. Onani kuti pogwiritsa ntchito zosiyana, mtengo wawo uli ndi vuto, chifukwa chozungulira nambala yaing'ono.
  • -b - kusonyeza deta mu bytes (zofanana ndi - kukula kwake ndi --kutseka-kukula = 1).
  • -ndipo --wonetsani chiĆ”erengero chonse cha kukula kwa foda.
  • -D - ndondomeko yotsatila mndandanda wazomwezo zomwe zili m'ndondomekoyi.
  • --files0-kuchokera = FILE - onetsani lipoti lonena za kugwiritsa ntchito diski, lomwe dzina lanu lidzalowetsedwa ndi inu mu "FILE".
  • -H - yofanana ndi fungulo -D.
  • -h - kutembenuzira malingaliro onse kuti apange mawonekedwe a anthu pogwiritsira ntchito zida zoyenera za data (kilobytes, megabytes, gigabytes, ndi terabytes).
  • --si - pafupifupi zofanana ndi njira yotsiriza, kupatula kuti imagwiritsa ntchito wogawa wofanana ndi chikwi.
  • -k --wonetsani deta mu kilobytes (zofanana ndi lamulo -block-size = 1000).
  • -l - Lamulo loti uwonjeze deta yonseyi ngati mulipo mawu oposa limodzi pa chinthu chimodzi.
  • -m --wonetsani deta mu megabytes (yofanana ndi lamulo -block-size-1000000).
  • -L - tsatirani mosamalitsa zowonjezera zowonjezereka.
  • -P - amachotsa njira yapitayi.
  • -0 - kuthetsa mzere uliwonse wa chidziwitso ndi zero byte, ndipo usayambe mzere watsopano.
  • -S - Kuwerengera malo osaganizidwa sikulingalira kukula kwa mafodawo.
  • -s - onetsani kukula kwa foda yomwe mwaiyikamo ngati mkangano.
  • -x - musapite kupyola ndondomeko ya mafayilo.
  • --exclude = SAMPLE - kunyalanyaza mafayilo onse ofanana ndi "Chitsanzo".
  • -d - onetsetsani kuya kwazotsatira mafolda.
  • -nthaĆ”i - onetsani zokhudzana ndi kusintha kwaposachedwa m'mafayilo.
  • --version - tchulani momwe mungagwiritsire ntchito du.

Tsopano, podziwa zonse zomwe mungasankhe du, mudzatha kuzigwiritsa ntchito mosagwiritsa ntchito, pakupanga zosinthika zosonkhanitsira uthenga.

Zitsanzo za ntchito

Pomalizira, kuti muthandizire mfundo zomwe mwalandira, ndi bwino kulingalira zitsanzo zingapo za kugwiritsa ntchito lamulo du.

Popanda kuwonjezera zina, zowonjezereka zimasonyeza maina ndi kukula kwa mafoda omwe ali pambali mwa njira yowonongeka, panthawi imodzimodziyo akuwonetsanso makina ochepa.

Chitsanzo:

du

Kuti muwonetsere deta zokhudza foda yomwe ili ndi chidwi ndi inu, lowetsani dzina lake mu nkhani ya lamulo. Mwachitsanzo:

du / home / user / Downloads
du / home / user / Images

Kuti zikhale zosavuta kuzindikira zonse zomwe zimapereka chidziwitso, gwiritsani ntchito njirayi -h. Idzasintha kukula kwake kwa mafoda onse kupita ku zigawo zofanana za deta ya digito.

Chitsanzo:

du -h / home / user / Downloads
du -h / nyumba / wosuta / Zithunzi

Kuti mukhale ndi lipoti lathunthu pa voliyiti yomwe ili ndi foda inayake, tchulani pamodzi ndi lamulo du chisankho -s, ndi pambuyo-dzina la foda yomwe mukuikonda.

Chitsanzo:

du -s / home / user / Downloads
du -s / nyumba / wosuta / Zithunzi

Koma zidzakhala zosavuta kugwiritsa ntchito zosankhazo. -h ndi -s pamodzi

Chitsanzo:

du -s / home / user / Downloads
du-home / home / user / Images

Zosankha -ndipo amagwiritsidwa ntchito kusonyeza kuchuluka kwa malo omwe amagwiritsidwa ntchito ndi mafoda (angagwiritsidwe ntchito pamodzi ndi zosankhazo -h ndi -s).

Chitsanzo:

du -chs / home / user / Downloads
du -chs / home / user / Images

Chinthu china chofunika kwambiri "chinyengo", chimene sichidatchulidwe pamwambapa, ndizotheka ---- max-depth. Ndicho, mungathe kuyika zakuya zomwe zimagwiritsidwa ntchito du adzatsatira mafoda. Mwachitsanzo, pa chiwerengero chakuya cha chigawo chimodzi, deta pa kukula kwa mafoda onse omwe atchulidwa mu gawo ili adzawonekeranso, ndipo mafoda omwe ali nawowo sadzanyalanyazidwa.

Chitsanzo:

du -h --max-depth = 1

Pamwambapo adapatsidwa ntchito zovomerezeka kwambiri. du. Kugwiritsa ntchito, mungathe kukwaniritsa zotsatira - fufuzani kukula kwa foda. Ngati zosankha zomwe zikugwiritsidwa ntchito muzitsanzo zikuwoneka ngati zazing'ono, mungathe kuchita zinthu mosagwirizana ndi ena, kuzigwiritsa ntchito pochita.

Njira 2: Foni ya Fayilo

Inde, "Terminal" imatha kupereka nyumba yosungiramo zinthu zokhudzana ndi kukula kwa mafoda, koma zimakhala zovuta kwa wogwiritsa ntchito kuti azimvetse. Ndizofala kwambiri kuti muwone mawonekedwe owonetsera, m'malo moyika malemba pamtundu wakuda. Pankhaniyi, ngati mukufunikira kudziwa kukula kwa foda imodzi, njira yabwino ingakhale yogwiritsira ntchito fayilo, yomwe imayikidwa ndi Linux.

Zindikirani: Nkhaniyi idzagwiritsa ntchito fayilo ya fayilo ya Nautilus, yomwe ili yoyenera kwa Ubuntu, koma malangizowa adzagwiritsidwa ntchito kwa oyang'anira ena, kokha machitidwe a mawonekedwe ena ndi mawonedwe awo akhoza kusiyana.

Kuti mudziwe kukula kwa foda ku Linux pogwiritsa ntchito fayilo manager, tsatirani izi:

  1. Tsegulani mtsogoleri wa fayilo podindira pazithunzi pa taskbar kapena pofufuza dongosolo.
  2. Yendetsani ku bukhu kumene foda ili.
  3. Dinani pomwepo (RMB) pa foda.
  4. Kuchokera m'ndandanda wamakono chotsani chinthucho "Zolemba".

Pambuyo pazochita zomwe mwachita, mawindo adzawoneka patsogolo panu pamene mukufunikira kupeza chingwe Zokhutira (1), kusiyana ndi kukula kwa foda. Mwa njira, pansipa padzakhala zambiri zokhudza zotsalira danga laulere laulere (2).

Kutsiliza

Zotsatira zake, muli ndi njira ziwiri zomwe mungapezere kukula kwa foda mu machitidwe opangira Linux. Ngakhale kuti amapereka zomwezo, zosankha zowonjezera zimasiyana kwambiri. Ngati mukufuna kudziwa mwamsanga kukula kwa foda imodzi, ndiye kuti njira yabwino ingakhale yogwiritsira ntchito fayilo ya fayilo, ndipo ngati mukufuna kupeza zambiri monga momwe zingathere, ndiye kuti Terminal ndi ntchito yabwino du ndi zosankha zake.