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
Enkosi ngengcebiso mzalwana, ungenza izithuba kwixesha elizayo malunga nendlela yokusebenzisa "xargs"?
Gracias!
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 | )
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
Enkosi ngenqaku, ngamanye amaxesha kukho ezinye .desktop (ingakumbi iwayini) eziphindwe kabini
Ukonwaba 🙂
Ndithatha ithuba lokucacisa ukuba kwiArch kunye nezinto eziphuma kuyo ifakwe neyaourt, hayi ngepacman.
Enkosi ngengcaciso :D!
Muy bueno!
Yongezwe kwingqokelela yezixhobo ezikhethekileyo 🙂
Enkosi ngezimvo 😀
Umnikelo ogqwesileyo, enkosi kakhulu XD.
Phendula nge quote
Enkosi kuwe ngokuphawula 🙂
Ilungule. Ndizakuzama ukususa iimp3 eziphindwe kabini kwingqokelela yam ye-100gb uu
Enkosi ngokuphawula, ithamsanqa 🙂
Igalelo elihle, njengesiqhelo. Enkosi.
hahahaha enkosi, ndihlala ndizama ukubeka izinto ezinomdla 😉
Igalelo elihle kakhulu.. Enkosi!
Enkosi ^ - ^
Ndiza kuqala ukucima zonke iifayile zam eziphindiweyo kwidiski yam esele izele, ndiyathemba ukukhulula malunga ne-10Gb,
Ohh enkosi kakhulu lento izondinceda kakhulu emsebenzini wam 😉
Enkosi kakhulu ngokubonisa iinkqubo ezincinci ezisombulula iingxaki ezinje, ezixhaphake kakhulu phakathi kwabasebenzisi be-Intanethi.
Enkosi ngokufunda nokuphawula.
Phendula nge quote
yandiphambana lento >_< enkosi!!!
Enkosi kakhulu bendinesiphithiphithi ngeefoto eziphindiweyo ndingazi ukuba mandenze ntoni!!!!
Siyabonga
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?
Zama ukubeka rm -R ekugqibeleni
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.
Ingcebiso elungileyo.
Ingxaki nge-rm operand kukuba ayinanto yokucima. Ukuba umyalelo wenziwa ngaphandle kombhobho, kukhangelwa ukuba akukho zimpinda.
mbuliso