Cire kayan tarihin TAR.GZ a kan Linux

Pin
Send
Share
Send

Matsakaicin nau'in bayanai don tsarin fayil a cikin Linux shine TAR.GZ, cibiyar tattara bayanan yau da kullun ta amfani da amfanin Gzip. A cikin irin waɗannan kundin adireshi, ana ba da shirye-shirye daban-daban da jerin manyan fayiloli da abubuwa, wanda ke ba da damar motsi mai dacewa tsakanin na'urori. Cire wannan nau'in fayil ɗin abu ne mai sauƙi kuma, don wannan kana buƙatar amfani da daidaitaccen mai amfani a ciki "Terminal". Za a tattauna wannan a cikin labarinmu a yau.

Cire kayan haɗin TAR.GZ a kan Linux

Babu wani abu mai rikitarwa a cikin hanyar cirewa kanta, mai amfani kawai yana buƙatar sanin umarni ɗaya da muhawara da yawa da ke da alaƙa da shi. Ba a buƙatar saka ƙarin kayan aikin ba. Tsarin aiwatar da aikin ɗawainiya iri ɗaya ne a cikin duk rarrabawa, amma mun ɗauki sabon sigar Ubuntu a matsayin misali muna bayar da shawarar ku mataki-mataki don magance batun ban sha'awa.

  1. Da farko kuna buƙatar ƙayyade wurin ajiya na kayan tarihin da ake so, saboda a nan gaba zuwa babban fayil na iyaye ta cikin na'ura wasan bidiyo kuma a can za ku iya aiwatar da duk sauran ayyukan. Sabili da haka, buɗe mai sarrafa fayil, nemo kayan tarihin, danna kan shi ka zaɓi "Bayanai".
  2. Wani taga zai buɗe wanda zaku iya samun cikakkun bayanai game da kayan tarihin. Anan a sashen "Asali" kula da "Jakar mahaifa". Tuna da hanyar yanzu da gaba gabadaya rufewa "Bayanai".
  3. Gudu "Terminal" kowane hanya mai dacewa, alal misali, riƙe maɓallin zafi Ctrl + Alt + T ko ta amfani da alama mai dacewa a cikin menu.
  4. Bayan buɗe console, kai tsaye zuwa babban fayil ɗin iyaye ta shigar da umarnincd / gida / mai amfani / babban fayilina mai amfani - sunan mai amfani, da babban fayil - sunan shugabanci. Ya kamata ka san cewa ƙungiyarcdkawai alhakin motsi zuwa wani takamaiman wuri. Ka sa wannan a cikin ƙarin don ƙara sauƙaƙe ma'amala kan layi akan Linux.
  5. Idan kuna son duba abin da ke cikin kayan adana bayanan, za ku buƙaci shigar da layitar -ztvf Archive.tar.gzina Amsoshi.tar.gz - sunan kayan tarihin..tar.gzwajibi ne don karawa. Idan an gama shiga sai a danna Shigar.
  6. Yi tsammanin nuna duk kundayen adireshi da abubuwan da aka samo akan allon, sannan kuma ta hanyar motsa murfin linzamin kwamfuta zaka iya ganin duk bayanan.
  7. Kada cire abubuwa yana farawa a inda kake, ta hanyar tantance umarnintar -xvzf archive.tar.gz.
  8. Tsawon lokacin aiwatar da wani lokaci yakan dauki lokaci mai yawa, wanda ya dogara da adadin fayiloli a cikin ɗakunan ajiya da girman su. Sabili da haka, jira har sai sabon layin shigarwar ya bayyana kuma har zuwa wannan lokacin ba'a rufe ba "Terminal".
  9. Daga baya, buɗe mai sarrafa fayil ɗin kuma sami littafin da aka ƙirƙira, zai sami sunan iri ɗaya kamar kayan tarihin. Yanzu zaku iya kwafar shi, dubawa, motsawa da yin wasu ayyukan.
  10. Koyaya, koyaushe ba lallai bane ga mai amfani ya cire duk fayiloli daga cikin kayan tarihin, wanda shine dalilin da yasa yana da mahimmanci a ambata cewa amfanin cikin tambaya yana goyan bayan buɗe wani takamaiman abu. Ana amfani da umarnin oda don wannan.-xzvf Archive.tar.gz file.txtina file.txt - sunan fayil da tsarinta.
  11. A lokaci guda, ya kamata a kula da batun sunan, a kula da dukkan haruffa da alamomi. Idan an yi kuskuren kuskure akalla, fayil ɗin ba zai iya samowa ba kuma zaku sami sanarwa game da kuskure.
  12. Wannan tsari kuma ya shafi kowane kundayen adireshi. An ja su ta amfani da sutar -xzvf Archive.tar.gz dbina db - The daidai sunan babban fayil.
  13. Idan kana son cire babban fayil daga littafin da aka adana a cikin kayan ajiyar kayan aiki, umarnin da aka yi amfani dashi shine kamar haka:tar -xzvf Archive.tar.gz db / babban fayilina db / babban fayil - hanyar da ake buƙata da babban fayil.
  14. Bayan shigar da duk umarnin, zaka iya ganin jerin abubuwan da aka karɓa, ana nuna shi koyaushe a cikin layin daban a cikin na'ura wasan bidiyo.

Kamar yadda wataƙila ka lura, lokacin da ka shigar da kowane daidaitaccen umarnikwaltamunyi amfani da muhawara dayawa a lokaci guda. Kuna buƙatar sanin ma'anar ɗayan ɗayansu, idan kawai saboda yana taimakawa mafi kyawun fahimtar mahimmancin algorithm a cikin jerin ayyukan amfani. Ana buƙatar tunawa da muhawara masu zuwa:

  • -x- cire fayiloli daga cikin kayan tarihi;
  • -f- Nunin sunan gidan tarihin;
  • -z- yin cirewa ta hanyar Gzip (dole ne a shigar, tunda akwai hanyoyin TAR da yawa, alal misali, TAR.BZ ko kawai TAR (archive ba tare da matsawa ba));
  • -v- nuna jerin fayilolin sarrafawa akan allon;
  • -t- nuna abun ciki.

A yau, abin da muka fi mayar da hankali shi ne akan buɗe nau'in fayil ɗin da aka tambaya. Mun nuna yadda ake kallon abun cikin, cire abu guda ko kuma kundin adireshi. Idan kuna sha'awar hanya don shigar da shirye-shiryen da aka adana a cikin TAR.GZ, sauran labarinmu zai taimaka muku, wanda zaku samu ta danna wannan hanyar.

Duba kuma: Sanya Fayilolin TAR.GZ akan Ubuntu

Pin
Send
Share
Send