Nrhiav rau cov ntawv teev loj tshaj plaws lossis cov ntaub ntawv ntawm koj lub hard drive nrog nrhiav

Koj puas tau xav paub txog daim ntawv twg lossis ntaub ntawv twg yog qhov loj tshaj plaws ntawm koj lub hard drive?

Qhov hais kom ua nrhiav nws zoo heev, nws tso cai rau peb ua ntau yam (peb twb tau tham txog qee qhov ntawm no), ntawm no kuv coj koj lwm txoj kev siv nws.

Cov lus txib nram qab no yuav tshawb tag nrho HDD thiab qhia peb uas yog 10 cov ntaub ntawv loj tshaj plaws lossis cov ntawv tais ceev tseg hauv lub computer:

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

Yog tias koj xav paub tsis yog qhov loj tshaj 10, tab sis 20 lossis qee yam zoo li ntawd, tsuas yog hloov lub 10 kawg rau qhov xav tau.

Raws li kuv tau hais ua ntej, qhov no yuav suav tag nrho cov folders thiab files, yog tias koj tsuas yog xav tau coj mus rau hauv tus account lub folders yuav ntxiv -tuaj d (d = qhia):

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

On qhov tsis tooj thiab xav pom tsuas yog lub archives thiab tsis muaj cov folders yuav raug -type f (f = file):

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

Yog tias koj xav qhia cov hom ntaub ntawv, uas yog, tsuas yog coj mus rau hauv tus account .mp4, tsuas yog ntxiv qhov-npe "" .mp4 ":

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

Hauv kuv cov ntaub ntawv loj tshaj plaws Kuv muaj virtual HDDs ntawm kuv cov virtual servers nrog KVM+ Qemu, tom qab ntawd cov ntawv pov npav football (nthuav tawm Gareth Bale nrog Madrid tiag) thiab lwm yam.


Cov ntsiab lus ntawm tsab xov xwm ua raws li peb cov ntsiab cai ntawm kev tswj hwm kev ncaj nceesCov. Tshaj tawm ib qho yuam kev nyem no.

11 lus, tawm koj li

Tso koj saib

Koj email chaw nyob yuav tsis tsum luam tawm. Yuav tsum tau teb cov cim nrog *

*

*

  1. Lub luag haujlwm rau cov ntaub ntawv: Miguel Ángel Gatón
  2. Lub hom phiaj ntawm cov ntaub ntawv: Tswj SPAM, kev tswj xyuas tawm tswv yim.
  3. Sau raws cai: Koj kev tso cai
  4. Kev sib txuas lus ntawm cov ntaub ntawv: Cov ntaub ntawv yuav tsis raug xa mus rau lwm tus neeg thib peb tsuas yog los ntawm kev txiav txim siab raug cai.
  5. Cov ntaub ntawv khaws cia: Cov Ntaub Ntawv khaws tseg los ntawm Occentus Networks (EU)
  6. Txoj Cai: Txhua lub sijhawm koj tuaj yeem txwv, rov qab thiab tshem tawm koj cov ntaub ntawv.

  1.   tus tub ceev xwm said

    Tsuas yog dab tsi kuv tab tom nrhiav kom paub txog qhov twg kuv nyob ntau qhov chaw hauv kuv lub hauv paus thiab yog li muaj peev xwm pub dawb rau nws.

    Ua tsaug rau koj.

  2.   Eduardo said

    Zoo heev cov lus, zoo siv heev. Ua tsaug ntau ntau… Los ntawm txoj kev, Hala Madrid !! hehehe

    1.    PHOO said

      Kuv koom nrog pawg Madrid ntawm no
      Qee lub sijhawm dhau los kuv tau txhim kho centos 6.5 tsawg heev thiab kuv muaj qhov yuam kev no thiab kuv daws nws los ntawm kev kho qhov / etc / hostname, vim hais tias cov hostname uas kuv tau sau rau hauv kev teeb tsa ntawm lub network card tsis tau lees paub los ntawm apache.

  3.   3rn3 ua said

    Yog tias muaj ib yam dab tsi uas kuv nyiam txog "Los ntawm Linux" nws yog tias cov pob zeb kub no ib txwm tshwm sim rau lub console uas ua rau peb lub neej nyob nruab nrab ntawm lub zeros thiab sawv daws siv dua. Ua tsaug ntau KZKG ^ Gaara!

  4.   woqer ua said

    Kuv yuav cog lus Kuv tau nyeem hauv lub blog no lwm txoj kev xaiv, uas vim tias kuv pom nws kuv tuaj yeem nyob tsis tau yog tias tsis muaj nws:

    ncd ua

    Nws yog ib qho kev sib tham sib uas tsis tuaj los ntawm lub neej ntawd (koj yuav tsum nruab nws los ntawm koj lub pob distro) tab sis nws yog qhov muaj txiaj ntsig zoo. Nws txheeb cov ntaub ntawv los ntawm qhov loj me, qhia koj qhov bar lossis ib feem pua ​​ntawm qhov chaw uas lawv nyob ntawm qhov muab faib. Ntawm no yog ib qho screenshot coj los hauv is taws nem http://www.heitorlessa.com/wp-content/uploads/2013/04/NCDU-1.9-Disk-stats.png

  5.   vidagnu said

    Nws tseem tuaj yeem ua tau nrog tus du hais kom ua.
    Qhov no yog mus nrhiav cov folders

    $ du -Sh | tsi -rh | taub hau -n 15

    Thiab ib qho no kom pom cov ntaub ntawv ntau tshaj plaws.

    $ nrhiav. -type f -exec du -Sh {} + | tsi -rh | taub hau -n 15

    $ nrhiav. -type f -exec du -Sh {} + | tsi -rh | taub hau -n 15

  6.   hwb 80 said

    Thiab dab tsi yog cov lus qhia rau txhua qhov kev xaiv?

  7.   Luis Gago Casas said

    Zoo heev tsab xov xwm tau ntawm kev pab rau kuv.
    Ua tsaug ntau koj tuaj share qhia peb paub thiab os.

  8.   Rogelio Rau said

    Leej twg yuav pab tau kuv? Kuv xav tau ib lo lus txib uas tshawb nrhiav hauv cov ntawv qhia rau txhua cov ntaub ntawv .txt uas loj dua 0 bytes thiab txav mus rau lwm cov ntawv, tam sim no kuv tsuas pom qhov no:

    nrhiav tau. -type f -size + 1b -exec mv /home/oradev/new/*.txt / ev / oradev / txav \;

    tab sis tshem tag nrho cov ntaub ntawv tsis hais lawv loj npaum li cas.

  9.   jac said

    Tsaug rau qhov hais kom ua!

    Nws tau siv nws nyob rau lwm lub sijhawm, tab sis tsuas yog nyob rau hauv "Script kiddie" hom ... vim qhov maj thiab zoo li ntawd.

    Thiab txawm hais tias pom yog ib qho lus txib siv heev (-lub npe, –exec), Kuv tsis tau tuaj yeem coj mus ua qhov zoo ntawm txhua phau ntawv.

    Kuv twb tau pom lub hwj chim lim hiam uas lub cuab yeej zoo kawg no muaj ... tab sis tam sim no kuv pom nws zoo dua thiab kuv qhuas nws ntxiv.

    Ntawm no koj muaj nws hauv lus Spanish:
    http://es.tldp.org/Paginas-manual/man-pages-es-extra-0.8a/man1/find.1.html

    Nws yog tus bitch uas qhov kev sib cav tsis yog qhov paub ntxiv ... Txawm tias koj paub lawv, vim tias koj tau kawm lawv, lossis mus tshawb inet lossis hauv tus txiv neej thaum tsis muaj ntxiv ... otas.

    Ua tsaug dua thiab ua tsaug rau koj ib txwm ua rau GNU!

    Ib lo lus nug ... tsuas yog tsis xav paub:

    Thaum koj muab qhov "printf" sib cav los nrhiav ...
    Puas pom siv qhov system printf hais kom ua, los yog printf siv dhau ntawm qhov nrhiav?

    Kuv hais nws, vim hais tias printf yog ib tug hais kom ua siv nyob rau hauv lub system mus ib txhis, tab sis hais tias tus kheej Kuv yeej tsis tau ua siv ntawm ... yam tsawg kawg ncaj qha.

    Txais tos!

    yaj.

  10.   cov duven said

    koj puas tuaj yeem qhia kuv yuav ua li cas thiaj ua sudo nrhiav / -type f -printf '% s% p \ n' | tsi -nr | taub -10
    zam qee txoj kev?

    Kuv muaj piv txwv:
    / dev / sda2 19G 16G 2.8G 85% /
    udev 10M 0 10M 0% / dev
    tmpfs 3.2G 329M 2.9G 11% / khiav
    tmpfs 7.9G 153M 7.8G 2% / dev / shm
    tmpfs 5.0M 0 5.0M 0% / khiav / ntsuas phoo
    tmpfs 7.9G 0 7.9G 0% / sys / fs / cgroup
    / dev / sda1 453M 37M 389M 9% / khau raj
    / dev / drbd3 477M 2.3M 445M 1% / var / lib / nfs
    / dev / drbd1 1.9T 821G 1005G 45% / nfs / tsev
    / dev / drbd2 2.9T 960G 1.8T 36% / nfs / homearchive
    / dev / drbd0 962G 426G 488G 47% / nfs / pool

    thiab thaum khiav pom / -type f -printf '% s% p \ n' | tsi -nr | taub -10
    Kuv tau txais cov ntaub ntawv los ntawm / nfs /
    Kuv xav tsis quav ntsej qhov ntawd