Yadda ake damfara da decompress fayiloli a cikin Linux

Latsa hotunan matsewa

A cikin wannan labarin za mu koya muku damfara da decompress fayiloli daga rarrabawar GNU / Linux da kuka fi so, duk suna amfani da umarni daga na'urar wasan bidiyo. Labari ne da ya dace da masu farawa kuma a ciki ba za mu hada da maganin kwalliya kamar yadda yake a sauran karatuttukan ba, tunda kawai zai nuna yadda ake yin matsewa da lalatawa ba tare da kunshe su da kayan kwalliyar ban mamaki ba.

Kodayake matsi da damuwa suna da sauƙi, masu amfani galibi suna bincika Intanit don yawancin yadda ake waɗannan ayyukan. Ina tsammanin sabanin sauran tsarin aiki kamar MacOS da Windows inda ake amfani da takamaiman takamaiman kayan aikin zane, a cikin GNU / Linux galibi ana gabatar dasu karin tsare-tsare da kayan aiki daban-daban ga kowane ɗayansu, kodayake akwai kayan aiki masu sauƙi a matakin zane ...

Don matsewa da damuwa za mu yi amfani da kunshe-kunshe biyu, tunda tabbas sune mafi kyawun tsari da wadanda muke zuwa akai-akai lokacin da muke aiki. Tsarin kama da Unix. Ina nufin gzip da bzip2.

Aiki tare da gzip

para damfara da gzip, tsarin da za mu rike shi ne Lempel-Zi (LZ77), kuma ba ZIP ba kamar haka, tunda sunan na iya haifar da rudani. Sunan ya fito ne daga GNU ZIP, kuma an sanya shi a madadin tsarin ZIP, amma ba iri daya bane. Ina so in fayyace hakan ... To, don damfara fayil:

gzip documento.txt

Wannan yana haifar da fayil mai suna daidai da asali tare da fadada .gz, a cikin misalin da ya gabata zai zama document.txt.gz. Madadin haka, don gyara sunan fitarwa ta wani takamaiman:

gzip -c documento.txt > nuevo_nombre.gz

para fitad da kaya Abinda aka riga aka matsa shi daidai ne mai sauƙi, kodayake zamu iya amfani da umarni daban-daban guda biyu tare da sakamako iri ɗaya:

gzip -d documento.gz

gunzip documento.gz

Kuma zamu sami fayil din ba a buɗe shi ba tare da faɗaɗa .gz ba.

Yin aiki tare da bzip2

Game da bzip2, yayi kama da shirin da ya gabata, amma tare da wani algorithm na matsawa daban wanda ake kira Burrows-Wheeler da coding Huffman. Thearin da muke da shi a wannan yanayin shine .bz2. Don samun damar damfara fayil, kawai dole muyi amfani da:

bzip2 documento.txt

Wannan yana haifar da takaddar takaddara.txt.bz2. Hakanan zamu iya bambanta da sunan fitarwa tare da -c zaɓi:

bzip2 -c documento.txt > nombre.bz2

Don ɓata rai zan yi amfani da zaɓin -d na kayan aikin bunzip2 wanda shine laƙabi:

bzip2 -d documento.bz2

gunbzip2 documento.bz2

Don ƙarin bayani zaku iya amfani mutumin bi umarnin ...


Abubuwan da ke cikin labarin suna bin ka'idodinmu na ka'idojin edita. Don yin rahoton kuskure danna a nan.

8 comments, bar naka

Bar tsokaci

Your email address ba za a buga. Bukata filayen suna alama da *

*

*

  1. Mai alhakin bayanan: Miguel Ángel Gatón
  2. Dalilin bayanan: Gudanar da SPAM, gudanar da sharhi.
  3. Halacci: Yarda da yarda
  4. Sadarwar bayanan: Ba za a sanar da wasu bayanan ga wasu kamfanoni ba sai ta hanyar wajibcin doka.
  5. Ajiye bayanai: Bayanin yanar gizo wanda Occentus Networks (EU) suka dauki nauyi
  6. Hakkoki: A kowane lokaci zaka iyakance, dawo da share bayanan ka.

  1.   Jaime Perea da m

    Sannu,

    Na gode sosai da sakonninku, koyaushe suna da amfani.

    Wataƙila zai zama mai ban sha'awa idan har aka ambaci xz, saboda ana amfani da shi sosai. Yana jeri wani wuri tsakanin bzip2 (a hankali, amma yana matse yawa) da gzip (da sauri, amma ƙasa da inganci). Wannan a manyan jeri, saboda kamar komai ... ya dogara. Tars ɗin da aka haɗa a cikin fayilolin Debian / Ubuntu .deb yawanci ana zuwa cikin matattun cikin tsarin xz.

    Hanyar amfani dashi shi yayi kama da sauran umarnin sos.

  2.   Ernesto m

    Barka dai, Ina so in nemi ayi wannan amma tare da tar.gz tunda anfi amfani dashi (a ganina gwargwadon duk abin da na sauke daga intanet)

  3.   Tsakar gida m

    Me suke faɗi game da shahararrun samfuran tsari masu yawa kamar .7z? Ya kamata su ma suna

  4.   omeza m

    Sannu Jose, abin da ke faruwa tare da fayilolin tar.gz shi ne cewa kayi amfani da wani umarni wanda yake tar ne kuma a wannan yanayin umarnin tar ɗin da kansa baya matsawa (ko raguwa) amma ana amfani dashi don haɗawa (ko ungroup) fayiloli da yawa a ɗayan, wannan yana da haɗin kai tare da umarnin gzip da bzip2 wanda zaku iya damfara da raguwa da shi.

    1.    Gonzalo m

      Gaskiya kun yi daidai, Ernesto, don tsari na kyauta na 7z wanda yake ba da kanta don kansa a cikin Windows, yana maye gurbin zip da rar, kuma ba sa ambatonsa?

  5.   a m

    google.com

  6.   usr m

    A cikin karni na 21 kuma har yanzu ana amfani da umarni don damfara fayil mai sauƙi? Wannan sakon yana da bakin ciki

  7.   Katrin m

    Wataƙila zai zama mai ban sha'awa ma