Mndandanda wa ma fayilo owonetsera pa Linux ndi TAR.GZ - malo osungiramo nthawi zonse omwe amathandizidwa ndi Gzip. M'makalata oterowo, mapulogalamu osiyanasiyana ndi mndandanda wa mafoda ndi zinthu nthawi zambiri zimagawidwa, zomwe zimapangitsa kuti kayendetsedwe kogwirana pakati pa zipangizo kamveke. Kuchotsa fayilo iyi ndikumveka kosavuta, chifukwa ichi muyenera kugwiritsa ntchito muyezo womwe umagwiritsidwa ntchito. "Terminal". Izi zidzafotokozedwa m'nkhani yathu lero.
Chotsani zolemba za TAR.GZ ku Linux
Palibe chovuta kuchitapo kanthu mwachindunji zokha; wogwiritsa ntchito amangofunikira kudziwa lamulo limodzi ndi zifukwa zingapo zogwirizana nazo. Kuyika kwa zida zina sikofunikira. Ndondomeko yochita ntchitoyi yonseyi ndi yofanana, tinatenga chitsanzo cha Ubuntu ndiposachedwa ndikupatseni funso la chidwi.
- Choyamba, muyenera kudziwa malo osungirako a archive oyenera, kuti mupite ku fayilo ya kholo kudzera pazondomeko ndikuchita zochitika zina kumeneko. Choncho, tsegule fayilo manager, fufuzani zolemba zanu, dinani pomwepo ndikusankha "Zolemba".
- Mawindo amatsegulira kumene mungapeze zambiri zokhudza archive. Apa mu gawo "Basic" samalirani "Foda ya makolo". Kumbukirani njira yamakono komanso molimba mtima "Zolemba".
- Thamangani "Terminal" njira iliyonse yabwino, mwachitsanzo, mutagwiritsa ntchito fungulo lotentha Ctrl + Alt + T kapena kugwiritsa ntchito chithunzi chofanana pamasamba.
- Pambuyo kutsegula console, nthawi yomweyo pitani ku foda ya makolo polemba
cd / nyumba / wosuta / foda
kumene wosuta - dzina la munthu, ndi foda - dzina lachinsinsi. Muyeneranso kudziwa kuti gululocd
ndi udindo wodzisamukira ku malo ena. Kumbukirani izi kuti mupitirize kuphweka kuyanjana ndi mzere wa malamulo ku Linux. - Ngati mukufuna kuwona zomwe zili mu archive, muyenera kulowa mzere
tar -ztvf Archive.tar.gz
kumene Archive.tar.gz - dzina la archive..tar.gz
Ndikofunika kuwonjezera pa nkhaniyi. Pamapeto pake, dinani pulogalamuyi Lowani. - Yembekezerani kuti muwonetse mauthenga onse opezeka ndi zinthu, ndiyeno podutsa gudumu la mbewa mukhoza kuona zonse.
- Yambani kutambasula kupita kumalo kumene muli, mwa kutchula lamulo
tar -xvzf archive.tar.gz
. - Nthawi ya ndondomekoyi nthawi zina imatenga nthawi yokwanira, yomwe imadalira chiwerengero cha maofesi omwe ali mu archive yomweyo komanso kukula kwake. Choncho, dikirani mpaka mzere watsopano wowonjezera uwonekere ndipo musatseke mpaka pano. "Terminal".
- Kenaka mutsegule meneja wa fayilo ndikupeza bukhu lopangidwa, lidzakhala ndi dzina lomwelo monga archive. Tsopano mukhoza kulijambula, kuyang'ana, kusuntha ndikuchita zochitika zina.
- Komabe, wogwiritsa ntchito nthawi zonse safunikira kuchotsa mafayilo onse kuchokera ku archive, chifukwa chake ndikofunikira kutchula kuti zofunikira mu funso zimathandizira chinthu chosasintha. Kuti muchite izi, gwiritsani ntchito lamulo la tar.
-xzvf Archive.tar.gz file.txt
kumene fayilo.txt - fayilo ndi maonekedwe. - Iyenso iyeneranso kuganizira zolembera za dzina, mosamala mosamala makalata onse ndi zizindikiro. Ngati cholakwika chimodzi chapangidwa, fayilo sichipezeka ndipo mudzalandira chidziwitso chokhudza zochitikazo.
- Njirayi ikugwiranso ntchito pa mauthenga apadera. Amachotsedwa
tar -xzvf Archive.tar.gz db
kumene db - dzina lenileni la foda. - Ngati mukufuna kuchotsa foda kuchokera ku bukhu limene lasungidwa mu archive, lamulo likugwiritsidwa ntchito ndilo:
tar -xzvf Archive.tar.gz db / foda
kumene db / foda - njira yofunikila ndi foda yomwe imatchulidwa. - Pambuyo polowera malamulo onse omwe mungathe kuwona mndandanda wa zolembedwera, nthawi zonse amawonetsedwa mndandanda wosiyana mu console.
Monga momwe mukuonera, lamulo lililonse lidayikidwa.tar
tinagwiritsa ntchito zifukwa zingapo panthawi yomweyo. Muyenera kudziwa tanthauzo la aliyense wa iwo, ngati kungakuthandizeni kumvetsetsa kusintha kwazomwe mukuchita pazomwe mukuchita. Kumbukirani kuti mukufunikira mfundo zotsatirazi:
-x
- tenga mafayilo ku archive;-f
- tchulani dzina la archive;-z
- kutsegula kudzera pa Gzip (ndikofunikira kulowa, popeza pali maonekedwe angapo a TAR, mwachitsanzo, TAR.BZ kapena TAR chabe (archive popanda compression));-v
- kuwonekera pa mndandanda wa maofesi osinthidwa pazenera;-t
- kusonyeza zokhudzana.
Lero, tcheru lathu linalunjika makamaka pa kutsegula mtundu wa fayilo. Tinawonetsa momwe zinthu zikuwonedwera, ndikuchotsa chinthu chimodzi kapena cholembera. Ngati mukufuna chidwi choyika mapulogalamu osungidwa ku TAR.GZ, mudzathandizidwa ndi nkhani yathu ina, yomwe mungapeze podalira chiyanjano chotsatira.
Onaninso: Kuika mafayilo a TAR.GZ ku Ubuntu