Ungawacindezela kanjani futhi uwahlukanise amafayela ku-Linux

Cindezela izithombe zokucindezela

Kulesi sihloko sizokufundisa cindezela futhi unciphise amafayela kusuka ekusatshalalisweni okuthandayo kwe-GNU / Linux, konke kusetshenziswa imiyalo evela kukhonsoli. Yindatshana ebhekiswe kubaqalayo futhi kuyo ngeke sifake ukwelashwa kwama-tarball njengakwamanye ama-tutorials, ngoba izokhombisa kuphela ukuthi ukucindezelwa nokuncipha kwenziwa kanjani ngaphandle kokukufaka ngethuluzi elihle le-tar.

Yize ukuminyaniswa nokwehla kwamandla ekhompuyutha kulula, abasebenzisi bavame ukusesha kwi-Intanethi ukuthola izindlela eziningi zokwenza lezi zenzo. Ngicabanga ukuthi ngokungafani nezinye izinhlelo zokusebenza ezinjengeMacOS neWindows lapho kusetshenziswa khona amathuluzi wokuqhafaza acacile futhi enembile, ku-GNU / Linux ajwayele ukwethulwa amafomethi amaningi namathuluzi ahlukahlukene ngamunye wabo, noma kukhona namathuluzi alula ezingeni lesithombe ...

Ekucindezelweni nasekunciphiseni sizosebenzisa amaphakheji amabili ayisisekelo, ngoba kungenzeka ukuthi amafomethi afunwa kakhulu nalawo esihlangana nawo kakhulu lapho sisebenza Izinhlelo ezifana ne-Unix. Ngikhuluma nge-gzip ne-bzip2.

Ukusebenza ne-gzip

para cindezela nge-gzip, ifomethi esizoyiphatha i-Lempel-Zi (LZ77), hhayi i-ZIP kanjalo, ngoba igama lingaholela ekudidekeni. Igama livela ku-GNU ZIP, futhi lenziwa njengendawo yefomethi ye-ZIP, kepha ayifani. Ngifuna ukukucacisa lokho ... Ukucindezela ifayela:

gzip documento.txt

Lokhu kukhiqiza ifayili elinegama elilingana nelangempela nokwandiswa kwe-.gz, esibonelweni esedlule kungaba document.txt.gz. Esikhundleni salokho shintsha igama okukhishwa nguthize:

gzip -c documento.txt > nuevo_nombre.gz

para vula Okuvele kucindezelwe kulula ngokulinganayo, noma singasebenzisa imiyalo emibili ehlukene nomphumela ofanayo:

gzip -d documento.gz

gunzip documento.gz

Futhi sizolithola ifayili kukhishwe uziphu ngaphandle kwesandiso se-.gz.

Ukusebenza ne-bzip2

Kepha bzip2, iyafana nohlelo lwangaphambilini, kepha nge-compression algorithm ehlukile ebizwa ngeBurrows-Wheeler neHuffman coding. Isandiso esinaso kuleli cala ngu .bz2. Ukuze ucindezele ifayela, kufanele sisebenzise nje:

bzip2 documento.txt

Lokhu kuphumela kudokhumenti ecindezelwe.txt.bz2. Futhi singahlukahluka igama lokukhiphayo ngenketho -c:

bzip2 -c documento.txt > nombre.bz2

Ekunciphiseni amandla ngingasebenzisa i -d inketho yethuluzi le-bunzip2 eliyi-alias:

bzip2 -d documento.bz2

gunbzip2 documento.bz2

Ngeminye imininingwane ungasebenzisa eyodwa kulandelwe umyalo ...


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.   UJaime Perea kusho

    Sawubona,

    Ngiyabonga kakhulu ngokuthunyelwe kwakho, zihlala ziwusizo.

    Mhlawumbe kungathandeka ukukhuluma nge-xz, njengoba nayo isetshenziswa kancane. Ifaka endaweni ethile phakathi kwe-bzip2 (ihamba kancane, kepha icindezela kakhulu) ne-gzip (iyashesha, kepha ayisebenzi kahle). Lokhu kumabanga amakhulu, ngoba njengakho konke ... kuya. Amathayili afakwe kumafayela we-Debian / Ubuntu .deb ngokuvamile eze acindezelwe ngefomethi ye-xz.

    Indlela yokuyisebenzisa iyefana neminye imiyalo ye-sos.

  2.   Ernesto kusho

    Sawubona, ngithanda ukucela ukuthi lokhu kwenziwe kodwa nge-tar.gz ngoba iyona esetshenziswa kakhulu (ngombono wami ngokusho kwakho konke engikulanda kwi-intanethi)

  3.   I-Jolt2bolt kusho

    Bathini ngamafomethi athandwa kakhulu kepha ama-multiplatform afana ne- .7z? Nabo kufanele bababize ngamagama

  4.   omeza kusho

    Sawubona Jose, okwenzekayo ngamafayela we-tar.gz ukuthi usebenzisa omunye umyalo oyi-tar futhi kulokhu umyalo we-tar ngokwawo awucindezeli (noma u-decompress) kepha usetshenziselwa ukuqoqa (noma ukuhlanganisa) amafayela amaningi kwelinye, leli lihlanganiswa nomyalo we-gzip ne-bzip2 ongacindezela ngawo futhi unciphise.

    1.    Gonzalo kusho

      Uqinisile impela, u-Ernesto, ngefomethi yamahhala engu-7z eyenza i-dent ku-Windows, esikhundleni se-zip ne-rar, futhi abayisho?

  5.   a kusho

    google.com

  6.   usr kusho

    Ngekhulu lama-21 futhi usasebenzisa imiyalo ukucindezela ifayili elilula? Lokhu okuthunyelwe kubuhlungu

  7.   Katrin kusho

    Mhlawumbe kungathakazelisa futhi