Cov qauv ntaub ntawv hom rau cov ntim cov ntaub ntawv hauv Linux yog TAR.GZ, ib txwm tsis tu ncua kev siv compressed siv Gzip chaw tso dej. Nyob rau hauv cov phau ntawv teev npe no, ntau cov kev pabcuam thiab cov npe ntawm cov nplaub tshev thiab cov khoom siv feem ntau muab faib, uas tso cai yooj yim txav ntawm cov khoom siv. Kev rho tawm cov hom ntaub ntawv no kuj yooj yim heev, rau qhov no koj yuav tsum siv tus qauv tsim nrog "Chaw Nres Tsheb"Cov. Qhov no yuav tham txog hauv peb tsab xov xwm hnub no.
Unpack TAR.GZ format archives on Linux
Tsis muaj dab tsi nyuaj hauv cov txheej txheem kev txiav txim siab nws tus kheej, tus neeg siv tsuas yog xav paub ib qho lus txib thiab ob peb nqe lus sib cuam tshuam nrog nws. Kev txhim kho ntawm cov cuab yeej ntxiv tsis tas yuav ua. Cov haujlwm ua tiav cov txheej txheem yog tib yam nyob rau hauv tag nrho cov kev faib tawm, tab sis peb coj qhov tseeb version ntawm Ubuntu ua piv txwv thiab qhia tias koj ua tiav ib kauj ruam nrog lo lus nug ntawm kev txaus siab.
- Ua ntej koj yuav tsum txiav txim siab qhov chaw nyob ntawm cov ntawv teev yam xav tau, kom yav tom ntej mus rau niam txiv ntawv tais ceev tseg los ntawm console thiab muaj koj tuaj yeem nqa tawm txhua lwm yam kev ua. Yog li ntawd, qhib cov ntaub ntawv tus thawj tswj hwm, nrhiav cov ntaub ntawv archive, txoj nyem rau nws thiab xaiv "Khoom".
- Lub qhov rais yuav qhib rau hauv qhov uas koj tuaj yeem tau txais cov ncauj lus qhia ntxaws ntxaws ntawm cov khaw ntawv. Ntawm no hauv seem "Pib" them sai sai rau "Cov niam txiv ntawv tais ceev tseg"Cov. Nco ntsoov txoj kev tam sim no thiab kom khov kho ze "Khoom".
- Khiav "Chaw Nres Tsheb" txhua txoj hauv kev yooj yim, piv txwv, tuav tus yuam sij kub Ctrl + kev + T lossis siv cov duab sib xws hauv cov ntawv qhia zaub mov.
- Tom qab qhib lub console, tam sim ntawd mus rau niam txiv nplaub tshev los ntawm kev nkag mus rau lo lus txib
cd / tsev / neeg siv / nplaub tshev
qhov twg neeg siv - Lub npe username, thiab ntawv tais ceev tseg - lub npe ntawm cov npe. Koj yuav tsum paub tias pawg neegcd
tsuas yog saib xyuas kom txav mus rau qhov chaw tshwj xeeb. Khaws qhov no hauv siab txhawm rau txuas ntxiv cov kab ua kom sib haum ntawm Linux. - Yog tias koj xav saib cov ncauj lus ntawm cov ntawv khaws tseg, koj yuav tsum nkag rau hauv kab
tar -ztvf Archive.tar.gz
qhov twg Khawb.tar.gz - lub npe ntawm cov archive..tar.gz
nws yog qhov yuav tsum tau ntxiv. Thaum siv nkag tag lawm, nyem rau ntawm Sau. - Cia siab tias yuav tso tawm tag nrho cov ntawv sau npe thiab cov khoom pom ntawm qhov screen, thiab tom qab ntawd los ntawm kev rub lub log nas koj tuaj yeem pom txhua yam ntaub ntawv.
- Kev ntim khoom pib ntawm qhov chaw koj nyob, los ntawm kev qhia meej ntawm cov lus txib
tar -xvzf archive.tar.gz
. - Lub sijhawm ntawm cov txheej txheem qee zaum yuav siv sijhawm ncaj, uas nyob ntawm cov naj npawb ntawm cov ntaub ntawv hauv qhov chaw ntim thiab lawv loj. Yog li ntawd, tos kom txog thaum tso tawm cov kab tshiab pom thiab txog lub sijhawm no tsis kaw "Chaw Nres Tsheb".
- Tom qab ntawd, qhib cov ntaub ntawv tus thawj tswj hwm thiab nrhiav cov ntawv tsim tsim, nws yuav muaj tib lub npe ntawv khaws cia. Tam sim no koj tuaj yeem luam nws, saib, txav thiab ua lwm yam kev ua.
- Txawm li cas los xij, nws tsis yog qhov tsim nyog rau tus neeg siv rub tawm tag nrho cov ntaub ntawv los ntawm cov chaw saib xyuas, uas yog vim li cas nws tseem ceeb uas yuav tau hais tias cov nqi hluav taws xob hauv nqe lus nug txhawb kom tshem tawm ib qho tshwj xeeb. Cov lus txib tar tau siv rau qhov no.
-xzvf Archive.tar.gz file.txt
qhov twg file.txt - cov ntaub ntawv npe thiab nws cov hom. - Nyob rau tib lub sijhawm, rooj plaub ntawm lub npe yuav tsum raug coj mus rau hauv tus account, ua tib zoo saib xyuas txhua tus tsiaj ntawv thiab cim. Yog tias tsawg kawg ib qho kev ua yuam kev, cov ntaub ntawv tsis tuaj yeem pom thiab koj yuav tau txais kev ceeb toom txog qhov ua yuam kev.
- Tus txheej txheem no tseem siv rau cov kev qhia hauv ib leeg. Lawv tau rub tawm siv
tar -xzvf Archive.tar.gz db
qhov twg db - Lub npe tseeb ntawm daim nplaub tshev. - Yog tias koj xav tshem tawm cov ntawv tais ceev tseg cov npe uas khaws cia hauv qhov chaw khaws cia, qhov kev txib siv yog raws li nram no:
tar -xzvf Archive.tar.gz db / nplaub tshev
qhov twg db / ntawv tais ceev tseg - txoj kev yuav tsum muaj thiab cov nplaub tshev teev tseg. - Tom qab nkag mus rau tag nrho cov lus txib, koj tuaj yeem pom cov npe ntawm cov ntsiab lus tau txais, nws ib txwm pom nyob rau hauv kab cais hauv console.
Raws li koj yuav tau pom, thaum koj nkag mus rau txhua tus qauv hais kom uatar
peb siv ntau qhov kev sib cav nyob rau tib lub sijhawm. Koj yuav tsum paub lub ntsiab lus ntawm lawv, yog tias tsuas yog vim tias nws pab kom nkag siab zoo txog cov txheej txheem tsis tau txiav txim hauv cov qib ntawm cov kev ua ntawm kev siv hluav taws xob. Koj yuav tsum nco ntsoov cov lus tawm tsam txuas mus ntxiv no:
-x
- rho tawm cov ntaub ntawv los ntawm qhov archive;-f
- Qhov qhia tau ntawm lub npe ntawm cov archive;-z
- kev ua haujlwm tsis dhau los ntawm Gzip (koj yuav tsum nkag mus, txij li muaj ntau hom TAR hom ntawv, piv txwv li, TAR.BZ lossis tsuas yog TAR (ua haujlwm tsis sau));-v
- tso cov npe ua tiav cov ntaub ntawv ntawm lub vijtsam;-twv
- tso saib cov ntsiab lus.
Niaj hnub no, peb lub hom phiaj yog tshwj xeeb rau kev rho tawm cov hom ntaub ntawv hauv nqe lus nug. Peb tau ua kom pom tias cov ntsiab lus raug saib li cas, rub tawm ib qho khoom lossis cov npe. Yog tias koj txaus siab rau tus txheej txheem rau kev txhim kho cov kev zov me nyuam khaws cia hauv TAR.GZ, peb lwm tsab xov xwm yuav pab koj, uas koj yuav pom los ntawm txhaj rau qhov txuas hauv qab no.
Saib ntxiv mus: Txhim Kho TAR.GZ Cov Ntaub Ntawv ntawm Ubuntu