Sesha izinkomba noma amafayela amakhulu kunawo wonke kwi-hard drive yakho ngokuthola

Wake wafuna ukwazi ukuthi iyiphi ifolda noma ifayili elikhulu kunawo wonke kwi-hard drive yakho?

Umyalo thola kuhle, kusivumela ukuthi senze izinto eziningi (sesivele sikhulume ngezinye zazo lapha), lapha ngikulethela okunye ukusetshenziswa kwakho.

Umyalo olandelayo uzosesha yonke i-HDD usitshele ukuthi yimaphi amafayela noma amafolda ayi-10 amakhulu kakhulu kukhompyutha:

sudo find / -printf '%s %p\n'| sort -nr | head -10

Uma ungafuni ukwazi i-10 enkulu nje kuphela, kepha engama-20 noma enye efana naleyo, mane ushintshe eyokugcina eyi-10 oyifunayo.

Njengoba ngishilo ngaphambili, lokhu kuzobala amafolda womabili namafayela, uma nje ufuna ukubheka i- amafolda kungaba ukufaka -type d (d = isiqondisi):

sudo find / -type d -printf '%s %p\n'| sort -nr | head -10

Kunalokho futhi ufuna ukubona kuphela i- archives futhi awekho amafolda abezoba -type f (f = file):

sudo find / -type f -printf '%s %p\n'| sort -nr | head -10

Uma ufuna ukucacisa uhlobo lwefayela, okungukuthi, vele ubheke i-.mp4, vele ungeze i -iname "* .mp4":

sudo find / -iname "*.mp4" -printf '%s %p\n'| sort -nr | head -10

Endabeni yami amafayela amakhulu kunawo wonke angama-HDD amaseva wami abonakalayo ane- I-KVM+ UQemu, bese kuba yividiyo yebhola (ukwethulwa kukaGareth Bale neReal Madrid) nezinye izinto.


Okuqukethwe yi-athikili kunamathela ezimisweni zethu ze izimiso zokuhlelela. Ukubika iphutha chofoza lapha.

Amazwana ayi-11, shiya okwakho

Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe. Ezidingekayo ibhalwe nge *

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.

  1.   mthokozisi kusho

    Lokho nje ebengikufuna ukwazi ukuthi ngisebenzisa kuphi isikhala esiningi empandeni yami bese ngikwazi ukusikhulula.

    Ngiyabonga

  2.   Eduardo kusho

    I-athikili enhle kakhulu, ilusizo kakhulu. Ngiyabonga kakhulu… By the way, by the way, Hala Madrid !! hehehe

    1.    I-FIXOCONN kusho

      Ngijoyina iqembu laseMadrid lapha
      Esikhathini esithile esedlule ngafaka ama-centos 6.5 amancane futhi nganginalo leli phutha futhi ngalixazulula ngokuhlela / etc / hostname, ngoba igama lomethuleli engangilibhale ekucushweni kwekhadi lenethiwekhi alizange laziwe yi-apache

  3.   Ngobe3 kusho

    Uma kunokuthile engikuthandayo nge- "From Linux" ukuthi lawa magugu ahlala evela ekhonsoli enza izimpilo zethu ziphakathi kwamaqanda kanye nalezo ezibekezeleleka kalula. ngibona kakhulu KZKG ^ Gaara!

  4.   woqer kusho

    Ngingafunga ukuthi ngifunde le blog ngenye indlela, ukuthi njengoba ngiyitholile angikwazi ukuphila ngaphandle kwayo:

    ncdu

    Kungumyalo osebenzisanayo ongezi ngokuzenzakalela (kufanele uwufake kusuka kwiphakeji yakho ye-distro) kepha ulusizo olukhulu. Ihlunga amafayela ngosayizi, ikukhombise ibha noma iphesenti lesikhala abahlala kuso ukwahlukanisa. Nasi isithombe-skrini esithathwe ku-inthanethi http://www.heitorlessa.com/wp-content/uploads/2013/04/NCDU-1.9-Disk-stats.png

  5.   i-vidagnu kusho

    Kungenziwa futhi ngomyalo we-du.
    Lokhu ukuthola amafolda

    $ du -Sh | hlunga -rh | ikhanda -n 15

    Futhi lena ukuthola amafayela amakhulu kunawo wonke.

    $ thola. -uhlobo f -exec du -Sh {} + | hlunga -rh | ikhanda -n 15

    $ thola. -uhlobo f -exec du -Sh {} + | hlunga -rh | ikhanda -n 15

  6.   hup80 kusho

    Futhi iyini incazelo yenketho ngayinye?

  7.   ULuis Gago Casas kusho

    I-athikili enhle kakhulu yangisiza kakhulu.
    Ngiyabonga kakhulu ngokuyihlanganyela.

  8.   URogelio Reyes kusho

    Ngabe ukhona ongangisiza? Ngidinga umyalo osesha ngaphakathi kwesikhombi sawo wonke amafayela we-.txt angaphezulu kwama-byte ayi-0 bese uwahambisa komunye umkhombandlela, kuze kube manje ngithole lokhu kuphela:

    thola. -Type f -size + 1b -exec mv /home/oradev/new/*.txt / home / oradev / move \;

    kepha hambisa wonke amafayela kungakhathalekile usayizi wawo.

  9.   jac kusho

    Siyabonga ngomyalo!

    Wayeyisebenzise kwezinye izikhathi, kepha kuphela kumodi ye- "Script kiddie" ... ngenxa yokuxhamazela nokunye okunjalo.

    Futhi noma i- find kungumyalo ojwayelekile (-name, -exec), bengingakwazi ukubheka kahle yonke incwadi.

    Bengivele ngiwabonile amandla anonya aleli thuluzi elihle kangaka ... kepha manje sengilibona lisondele kakhulu futhi ngilithanda kakhulu.

    Lapha unakho ngeSpanishi:
    http://es.tldp.org/Paginas-manual/man-pages-es-extra-0.8a/man1/find.1.html

    Kuyindidane ukuthi izimpikiswano azinembile kakhulu ... Kuphakathi kokuthi uyazazi, ngoba uzifundile, noma ukusesha i-inet noma umuntu lapho kungasekho ... ama-otas.

    Ngiyabonga futhi futhi ngiyabonga njengenjwayelo ku-GNU!

    Umbuzo owodwa ... ngenxa yelukuluku nje:

    Lapho ubeka impikiswano ye- "printf" ukuthola ...
    Ngabe ukusetshenziswa kusebenzisa uhlelo lwe-printf command, noma ingabe i-printf isetshenzisiwe ngaphakathi kokuthola?

    Ngiyakusho, ngoba i-printf ngumyalo osetshenziswe ohlelweni unomphela, kepha lokho mathupha angikaze ngisebenzise ... okungenani ngqo.

    Un saludo!

    jac.

  10.   i-duven kusho

    ungangitshela ukuthi ngingalwenza kanjani iSudo find / -type f -printf '% s% p \ n' | hlunga -nr | ikhanda -10
    ukugwema eminye imizila?

    Nginesibonelo:
    /ithegi / sda2 19G 16G 2.8G 85% /
    udev 10M 0 10M 0% / dev
    Ama-tmpfs 3.2G 329M 2.9G 11% / run
    Ama-tmpfs 7.9G 153M 7.8G 2% / dev / shm
    tmpfs 5.0M 0 5.0M 0% / run / lock
    tmpfs 7.9G 0 7.9G 0% / sys / fs / iqembu
    / dev / sda1 453M 37M 389M 9% / ibhuth
    / dev / drbd3 477M 2.3M 445M 1% / var / lib / nfs
    / dev / drbd1 1.9T 821G 1005G 45% / nfs / ikhaya
    / dev / drbd2 2.9T 960G 1.8T 36% / nfs / isilondolozi sasekhaya
    / dev / drbd0 962G 426G 488G 47% / nfs / ichibi

    futhi lapho usebenza thola / -type f -printf '% s% p \ n' | hlunga -nr | ikhanda -10
    Ngithola amafayela kusuka / nfs /
    Ngingathanda ukukuziba lokho