Ukususa udoti nge-Shred

dabula

Lapho sisusa ifayela kwi-hard drive yethu (ngokwesibonelo umyalo we-rm), imininingwane equkethwe kuyo ihlala kwi-hardware noma ngabe uhlelo lokusebenza lusazisa ukuthi ifayela lisusiwe.

Lokhu kusebenza ekuhlanzweni kwedatha (umlando, njll.) Iziphequluli zewebhu ezenzayo ngokusebenzisa izinketho kumamenyu wazo. Lonke lolu lwazi luyatholakala kalula ngezinhlelo ezifana testdisk o isithombe.

Lokhu, kwesinye isikhathi okungaba ngumthombo olusizo kakhulu kithina, kwezinye izikhathi kungenza sikwazi ukuthola imininingwane ekhompyutheni yethu ebesifuna ukuthi iqedwe nya. Icala elijwayelekile lapho sifuna ukuthengisa ikhompyutha yethu futhi siqiniseke ukuthi akekho umuntu ozokwazi ukuthola noma iyiphi idatha kuyo.

Ukususwa okuphephile kwamafayela kukhona, phakathi kwabanye, umyalo dabula.

Klebhula iyisetshenziswa sokususwa kwefayela eliphephile elibhala ngaphezulu amafayela anezinhlamvu ezingahleliwe namaphethini enza imininingwane equkethwe kuyo ibe udoti.

Inani lezikhathi zokubhala ngaphezulu licacisiwe ngenketho n "inombolo". Ezinye izinketho yilezi -z ukwenza ukukhipha okokugcina ngamaqanda, -v ukusazisa ngenqubo futhi -u ukususa ifayili ngemuva kokubhalwa ngaphezulu.

Kuyisidina ukusebenzisa umyalo osikiwe kufayela ngalinye. Ngaphezu kwalokho, ayisebenzi ezinkomba. Ukwenza ukusetshenziswa kwayo kube lula kakhulu, singaqhubeka ngokuthumela yonke imininingwane esifuna ukuyisusa kudoti (kufaka phakathi imininingwane ebucayi) futhi, njalo lapho sifuna ukusebenzisa umbhalo olandelayo:

#! / bin / bash path_to_trap = $ HOME '/. local / share / Trash / files' #Shintsha inani lenani lesihlukanisi sangaphakathi_ifs = $ IFS IFS = $ (echo -en "\ n \ b") cd $ path_to_trap # Okokuqala susa wonke amafayela we-f in $ (thola. -Type "f") do let length__string_fragment = `expr length $ f`-1 file = $ path_to_string $ {f: 1: $ length__string_fragment} shred -n3 -v -z -u $ file echo $ file done # Susa izinkomba zemikhombandlela ku $ (ls -a) do if [["$ directory"! = "." " ------------------------------------------------------ --------

Ku-Debian 6 no-7, indlela eya kudoti yiyo ekhonjiswe kudoti oguqukayo path_to_. Uma kwehluka kwamanye ama-distros, kufanele ushintshe lokhu kuskripthi.

Ukushiya idiski ihlanzekile, singakha umkhombandlela lapho singathola khona yonke idatha "efihliwe", bese siyiyisa kudoti bese sisebenzisa lo mbhalo.

Ngiyethemba ilusizo kuwe.


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

Amazwana ayi-8, 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.   izinga kusho

    Kuyathakazelisa! 🙂

  2.   yazi93 kusho

    ilusizo kakhulu, ngiyabonga.

    1.    danield ngesikhathi kusho

      Ngiyajabula ukuthi ukuthole kuwusizo

  3.   RAW-Okuyisisekelo kusho

    Kuhle! .. ..ngiyabonga ngokwabelana ..

    Ukuze amabhukumaka .. 😉

    1.    danield ngesikhathi kusho

      :;

  4.   U-Essaú kusho

    okungcono, kunamandla amakhulu futhi ungasusa nezinkomba ezigcwele: faka iphakethe eliphephile-susa, bese u-oda "ifayela le-srm" lenza ifayela linyamalale. Futhi i- "srm -r directory" ichoboza umkhombandlela nakho konke okukuwo.

    * Ukudlula okungu-1 ngo-0xff
    * Ukudlula okungahleliwe okungu-5.
    * Ukudlula okungama-27 ngamanani akhethekile achazwe nguPeter Gutmann.
    * Ukuqamba kabusha ifayela ngenani elingahleliwe
    * ifayela elifinyeziwe

    1.    danield ngesikhathi kusho

      Bengingamazi, u-Essaú, kodwa ubukeka engcono kakhulu kunokuqhekeka. Ngiyabonga

  5.   UBryanDG kusho

    Ngikhuluma nge-Shred ngifuna ukwabelana nawe ngemenyu yesevisi engiyenzele i-KDE ezosusa amafayela akhethiwe
    isixhumanisi sekhodi http://paste.desdelinux.net/4820

    Ngichaza ingxenye ye-exec = ngezansi:
    -mv% f% u: ukushintsha igama lamafayela (isibonelo) kusuka ku-foto01.jpg kuya ku-foto01.jpgtxt.jpg.mp4.rar.zip.mov.mov.ar (lokhu kuzokunikeza okuthe xaxa ukuphepha lapho kususwa)
    -shred -n 3 -z% u.txt -u: lapho -n 3 ibhala ngaphezulu ifayela eliqanjwe kabusha amahlandla ama-3 nge-mv (% u) futhi -u kwenzelwa ukuthi ngemuva kokubhala ngaphezulu ifayela izolisusa unomphela (ngaphandle kokudlula umgqomo kadoti).

    indlela lapho ifayili kufanele libe khona yile:
    /home/USUARIO/.kde/share/kde4/services/ (lapho USER igama lefolda yakho yangasese)

    isandiso sefayela yi-.desktop (ngine-shred.desktop yayo)

    Well bengifuna ukwabelana ngekhodi yami, bangitshela noma yini :)