Fumana kwaye ususe iifayile eziphindiweyo kwinkqubo yakho nge-duff

Abo banjengam abathanda ukuqokelela ulwazi oluthile (njengamaphepha odonga e-HD, njl.) sinengxaki yokuba ekuhambeni kwexesha siqala ukuba nolwazi oluphindwe kabini kwinkqubo yethu, umzekelo oqhelekileyo unokuba yi-Linux iphepha lodonga eliphindaphindiweyo (ngegama elahlukileyo ifayile nganye). Ingxaki yokwenyani isenokungabi sisithuba kodwa kunokuba i-obsessive-compulsive order freaks efana nam; Asinakukwazi ukuzola noxolo sisazi ukuba kwingqokelela yethu exabisekileyo kukho into engalunganga, iphindiwe, ingalunganga 😀

Ngethamsanqa kwiLinux kuhlala kukho isixhobo sokusombulula iingxaki zethu, kule meko yeefayile eziphindiweyo sinesoftware: duff

Ungayifumana kwindawo yayo yokugcina, kwi-distros efana neDebian okanye ngokusekwe kuyo ngokulula: sudo apt-get install duff Kuya kwanela ukuba uyifake, kwiArchLinux ndicinga ukuba yiyo sudo pacman -S duff

Nje ukuba siyifakile, ukuyisebenzisa kulula kakhulu, umzekelo ndiya kukhangela zonke iifayile eziphindiweyo kwifolda yam Umfanekiso (/ekhaya/kzkggaara/Imifanekiso/):

duff -r  /home/kzkggaara/Pictures

Ipharamitha -r Kungenxa yokuba ikhangele ngokuphindaphindiweyo kwaye konke okuseleyo kukuchaza ukuba yeyiphi incwadi eneenkcukacha ekufuneka ikhangele kuyo, kulo mzekelo /home/kzkggaara/Mifanekiso.

Oku kuya kukubonisa into efana nale:

Njengoko ubona, isixelela ukuba kukho iifayile ezi-2 eziphindwe kabini Imifanekiso/Iimbonakalo-mhlaba/IiNdawo+Eluhlaza/ kunye neefayile ezimbini eziphindwe kabini ngaphakathi Imifanekiso/iMangas/Naruto/Sharingans/

Le yinxalenye encinci ye-screenshot yonke ... Ndiye ndaqonda ukuba ndinefayile ezininzi eziphindwe kabini 0_oU

Ngoku umbuzo uvela: Uzicima njani iifayile eziphindiweyo?

Ngomyalelo olandelayo iyakukhangela zonke iifayile eziphindwe kabini kwaye icime enye yazo, oko kukuthi, zifayile ezimbini ezifanayo... enye yazo iya kucinywa:

duff -e0 -r /home/kzkggaara/Pictures/ | xargs -0 rm

Lo myalelo, ndiyaphinda, uya kuphelisa iifayile eziphindiweyo ezikuluhlu olubonisayo, uhlala ushiya kuphela ifayile enye yazo zonke ezinye ezinokufana.

Ndisavavanya indibaniselwano yemiyalelo enokuba luncedo nge duff...xargs, ngokunjalo nakwi man duff ukufunda ukwenza ngokwezifiso iziphumo zayo, ndikwacebisa ukuba ufunde uncedo lwe-duff :)

Nangona kunjalo, akukho nto ingako yokongeza okwangoku, ndiyathemba ukuba uwufumene uluncedo lo myalelo 😀

Phendula nge quote


Shiya uluvo lwakho

Idilesi yakho ye email aziyi kupapashwa. ezidingekayo ziphawulwe *

*

*

  1. Uxanduva lwedatha: UMiguel Ángel Gatón
  2. Injongo yedatha: Ulawulo lwe-SPAM, ulawulo lwezimvo.
  3. Umthetho: Imvume yakho
  4. Unxibelelwano lwedatha: Idatha ayizukuhanjiswa kubantu besithathu ngaphandle koxanduva lomthetho.
  5. Ukugcinwa kweenkcukacha
  6. Amalungelo: Ngalo naliphi na ixesha unganciphisa, uphinde uphinde ucime ulwazi lwakho.

      wmdmsi sitsho

    Enkosi ngengcebiso mzalwana, ungenza izithuba kwixesha elizayo malunga nendlela yokusebenzisa "xargs"?

    Gracias!

         I-KZKG ^ iGaara sitsho

      Andikabi yingcaphephe nge xargs, ukuyichaza ngokulula (kakhulu ngokulula), xargs ikuvumela ukuba uphumeze imiyalelo ngokudlula njenge parameter kulo myalelo imveliso okanye isiphumo sento ebisenziwa ngaphambili (oko kukuthi, yintoni ephambi kombhobho. okanye | )

         dhunter sitsho

      Inkcukacha enye, ngalo lonke ixesha usebenzisa xargs zama ukuthumela idata kuyo ngaphandle \ ngaphandle kokudlulisa i -0 kwaye emva koko ufumane kwi xargs ngo -0, oku kubaluleke kakhulu kumagama efayile aqulathe isithuba esinje "ifayile yam yile.mp3" .

      Umzekelo ngokufumana.

      fumana -igama «ukucima-» ./ -print0 | xargs -0 rm

      gato sitsho

    Enkosi ngenqaku, ngamanye amaxesha kukho ezinye .desktop (ingakumbi iwayini) eziphindwe kabini

         I-KZKG ^ iGaara sitsho

      Ukonwaba 🙂

           gato sitsho

        Ndithatha ithuba lokucacisa ukuba kwiArch kunye nezinto eziphuma kuyo ifakwe neyaourt, hayi ngepacman.

             wmdmsi sitsho

          Enkosi ngengcaciso :D!

      Joaquin sitsho

    Muy bueno!
    Yongezwe kwingqokelela yezixhobo ezikhethekileyo 🙂

         I-KZKG ^ iGaara sitsho

      Enkosi ngezimvo 😀

      UCarper sitsho

    Umnikelo ogqwesileyo, enkosi kakhulu XD.
    Phendula nge quote

         I-KZKG ^ iGaara sitsho

      Enkosi kuwe ngokuphawula 🙂

      f3niX sitsho

    Ilungule. Ndizakuzama ukususa iimp3 eziphindwe kabini kwingqokelela yam ye-100gb uu

         I-KZKG ^ iGaara sitsho

      Enkosi ngokuphawula, ithamsanqa 🙂

      UBlaire pascal sitsho

    Igalelo elihle, njengesiqhelo. Enkosi.

         I-KZKG ^ iGaara sitsho

      hahahaha enkosi, ndihlala ndizama ukubeka izinto ezinomdla 😉

      VulkHead sitsho

    Igalelo elihle kakhulu.. Enkosi!

         I-KZKG ^ iGaara sitsho

      Enkosi ^ - ^

      iijems sitsho

    Ndiza kuqala ukucima zonke iifayile zam eziphindiweyo kwidiski yam esele izele, ndiyathemba ukukhulula malunga ne-10Gb,

      damncookie sitsho

    Ohh enkosi kakhulu lento izondinceda kakhulu emsebenzini wam 😉

      albert mna sitsho

    Enkosi kakhulu ngokubonisa iinkqubo ezincinci ezisombulula iingxaki ezinje, ezixhaphake kakhulu phakathi kwabasebenzisi be-Intanethi.

         I-KZKG ^ iGaara sitsho

      Enkosi ngokufunda nokuphawula.

      Phendula nge quote

      Kuk sitsho

    yandiphambana lento >_< enkosi!!!

      joan sitsho

    Enkosi kakhulu bendinesiphithiphithi ngeefoto eziphindiweyo ndingazi ukuba mandenze ntoni!!!!
    Siyabonga

      Alejandro sitsho

    Uxolo, ndizamile i-duff ukucima iifayile eziphindiweyo nge-syntax oyibonisayo kodwa imveliso kwi-terminal indixelela ukuba i-rm operand ayikho.
    Ndibhala into enje kwi-terminal:
    duff -e0 -r /media/alejandro/backup/libraries/ebooksepub/ | xargs -0 rm
    kwaye ndifumana oku: rm: i-operand engekho
    Zama 'rm –help' ngolwazi oluthe kratya

    Nceda ungandixelela i-operand xa, njengakwimeko yam, ibandakanya ukucima amawaka eefayile eziphindiweyo kwilayibrari yam ye-epub?

         I-KZKG ^ iGaara sitsho

      Zama ukubeka rm -R ekugqibeleni

           Alejandro sitsho

        Enkosi ngengqalelo yakho, kodwa ngelishwa isindululo sakho asisebenzanga, ndikubonisa iziphumo:
        alejandro@alejandro-ubuntu-mate-1504:~$ duff -e0 -r /media/alejandro/backup/libraries/ebooksepub/ | xargs -0 rm -R
        rm: i-operand engekho
        Zama 'rm –help' ngolwazi oluthe kratya.

      hector sitsho

    Ingcebiso elungileyo.
    Ingxaki nge-rm operand kukuba ayinanto yokucima. Ukuba umyalelo wenziwa ngaphandle kombhobho, kukhangelwa ukuba akukho zimpinda.
    mbuliso