Cov txheej txheem cov ntaub ntawv ntawm cov ntaub ntawv hauv Linux yog TAR.GZ - ib qho kev ceev xwm ceev nrooj nrog lub Gzip utility. Hauv cov kev qhia zoo li no, ntau cov kev pabcuam thiab cov npe ntawm cov ntawv sau thiab cov khoom feem ntau raug muab faib, uas tso cai rau kev yoojyim ntawm nruab nrab. Unpacking hom ntaub ntawv no kuj yog yooj yim heev, rau qhov no koj yuav tsum tau siv lub txheem built-in utility. "Terminal". Qhov no yuav tham txog nyob rau hauv peb tsab xov xwm hnub no.
Unpacking TAR.GZ archives hauv Linux
Tsis muaj dab tsi nyuab tshaj nyob hauv txoj cai decompression xwb; tus neeg siv yuav tsum paub txog ib qho kev hais kom ua thiab ntau nqe lus nrog nws. Txhim kho cov cuab yeej ntxiv tsis tas yuav tsum muaj. Tus txheej txheem ntawm kev ua hauj lwm hauv txhua distributions yog tib yam, peb coj ua piv txwv li qhov tseeb version of Ubuntu thiab qhia koj kauj ruam yog kauj ruam mus nrog lo lus nug ntawm kev txaus siab.
- Ua ntej, koj yuav tsum tau txiav txim seb qhov chaw cia rau ntawm qhov xav tau kom tiav, thiaj li yuav mus rau niam txiv nplaub tshev ntawm lub console thiab ua tag nrho lwm yam kev ua. Yog li ntawd, qhib tus neeg saib xyuas cov ntaub ntawv, nrhiav lub zwj thaj, txoj cai-nias rau nws thiab xaiv "Cov khoom".
- Lub qhov rais qhib nyob rau hauv uas koj tuaj yeem tau txais cov lus qhia ntxaws txog qhov archive. Ntawm no hauv seem "Yooj Yim" them nyiaj rau "Parent folder". Nco ntsoov txoj hauv kev tam sim no thiab ua siab loj "Cov khoom".
- Khiav mus "Terminal" txhua txoj hauv kev yooj yim, piv txwv, tuav qhov tseem ceeb kub Ctrl + Alt + T los yog siv cov lus cim hauv cov ntawv qhia zaub mov.
- Tom qab qhib lub console, tam sim ntawd mus rau niam txiv lub npe ntawm sau
cd / tsev / neeg / khoob
qhov twg tus neeg siv - username, thiab nplaub tshev - npe lub npe. Koj yuav tsum paub tias pawg neeg ntawdcd
lub luag hauj lwm rau kev tsiv mus rau ib qhov chaw xwb. Nco ntsoov qhov no thiaj li ua kom yooj yim dua qhov kev sib txuas nrog cov kab hais kom ua hauv Linux. - Yog tias koj xav pom cov ntsiab lus ntawm cov archive, koj yuav tsum nkag rau kab
tar -ztvf Archive.tar.gz
qhov twg Archive.tar.gz - archive lub npe..tar.gz
nws yog ib qho tsim nyog ntxiv rau tib lub sijhawm. Thaum kawm tiav ntawm lub ntsiab lus nias ntawm Sau. - Cia siab tias yuav tso saib tag nrho cov kev tshawb fawb thiab khoom, thiab tom qab ntawd los ntawm scrolling mouse log koj tuaj yeem pom txhua yam ntaub ntawv.
- Pib lub unpacking mus rau qhov chaw uas koj muaj, los ntawm specifying txib
tar -xvzf archive.tar.gz
. - Lub sijhawm ntawm txoj kev ua haujlwm yuav siv sij hawm ntau heev ntawm lub sijhawm, uas yog nyob ntawm tus xov tooj ntawm cov ntaub ntawv hauv lub zeem nws tus kheej thiab lawv qhov loj. Yog li, tos kom txog thaum cov tswv yim tshiab tshwm thiab tsis kaw txog txij no. "Terminal".
- Tom qab qhib tus neeg saib xyuas cov ntaub ntawv thiab nrhiav cov directory tsim, nws yuav muaj tib lub npe raws li cov archive. Tam sim no koj tuaj yeem luam nws, saib, tsiv thiab ua lwm yam.
- Txawm li cas los xij, tus neeg siv tsis tas yuav tsum rho tawm tag nrho cov ntaub ntawv los ntawm cov archive, uas yog vim li cas nws yog ib qho tseem ceeb uas yuav tsum tau hais tias lub chaw ua hauj lwm txhawb nqa unarchiving ib yam khoom. Ua raws li qhov no, siv qhov kev hais ua phem.
-xzvf Archive.tar.gz file.txt
qhov twg file.txt - cov npe thiab hom ntawv. - Nws kuj yuav tsum nqa mus rau hauv tus as khauj ntawm lub npe, ua tib zoo saib txhua tus tsiaj ntawv thiab cov cim. Yog tias tsawg kawg yog ib qho yuam kev lawm, cov ntaub ntawv tsis tuaj yeem pom thiab koj yuav tau txais kev ceeb toom txog qhov tshwm sim ntawm qhov yuam kev.
- Txoj kev no tseem siv tau rau ib tug neeg hauv xov tooj. Lawv raug rho tawm los ntawm
tar -xzvf Archive.tar.gz db
qhov twg db - lub npe pes tsawg ntawm daim nplaub tshev. - Yog tias koj xav tawm ib phau ntawv ceev tseg los ntawm ib phau ntawv khaws cia hauv cov ntaub ntawv, cov lus txib siv yog raws li hauv qab no:
tar -xzvf Archive.tar.gz db / nplaub tshev
qhov twg db / nplaub tshev - txoj kev uas yuav tsum tau ua thiab daim nplaub tshev. - Tom qab nkag mus rau tag nrho cov lus txib koj tuaj yeem pom cov npe ntawm cov ntsiab lus uas tau txais, nws yog ib txwm tshwm nyob rau hauv cov kab cais hauv lub console.
Raws li koj pom, txhua nqe lus txib raug sau tseg.tar
peb siv ntau nqe lus nyob rau tib lub sijhawm. Koj yuav tsum paub lub ntsiab lus ntawm txhua tus ntawm lawv, yog tias tsuas yog vim nws yuav pab koj nkag siab txog qhov decompression algorithm nyob rau hauv cov kev ua ntawm cov dej num. Nco ntsoov tias koj xav tau cov lus sib tham nram no:
-x
- rho tawm cov ntaub ntawv ntawm qhov archive;-f
- qhia lub npe ntawm cov archive;-z
- nqa tawm unzipping ntawm Gzip (nws yog tsim nyog rau nkag mus, vim muaj ntau hom TAR, piv txwv li, TAR.BZ los yog ib tsab TAR (archive tsis compression));-v
- tso saib cov npe ntawm cov ntaub ntawv tiav ntawm qhov screen;-t
- qhia cov ntsiab lus.
Niaj hnub no, peb mloog tau tsom ncaj qha rau ntawm unpacking lub hom ntawm cov ntaub ntawv. Peb pom tau hais tias cov ntsiab lus saib tau licas, rub tawm ib yam khoom los yog directory. Yog tias koj txaus siab rau txoj haujlwm rau kev txhim kho cov kev zov me nyuam uas muaj nyob hauv TAR.GZ, peb lwm tsab xov xwm yuav pab koj, uas koj yuav pom los ntawm txhaj rau qhov txuas mus ntxiv no.
Saib kuj: Txhim kho TAR.GZ cov ntaub ntawv hauv Ubuntu