Nws yog qee zaus yooj yim rau kev khaws cov kev zov me nyuam, cov kev xa thiab cov ntaub ntawv hauv daim ntawv ntawm cov ntaub ntawv, txij li thaum lawv coj me ntsis chaw hauv lub computer thiab tuaj yeem khiav tawm hauv kev tawm mus rau lwm lub tshuab computer. Ib qho ntawm feem nrov archive tawm tswv yim yog ZIP. Niaj hnub no peb xav tham txog yuav ua li cas nrog cov hom ntaub ntawv hauv kev khiav hauj lwm cov kev khiav haujlwm raws li lub tshuab Linux, vim cov kev pabcuam txuas ntxiv yuav tsum tau siv rau tib lub unpacking lossis saib.
Unpacking ZIP archives hauv Linux
Tom ntej no, peb yuav qhib rau ob lub nrov dawb software uas tau tswj xyuas ntawm cov console, uas yog, tus neeg siv yuav tsum tau sau cov lus sib ntxiv thiab ntxiv cov cai kom tswj tag nrho cov ntaub ntawv thiab cov cuab yeej. Ib qho piv txwv ntawm qhov no yog Ubuntu kev faib, thiab rau cov tswv ntawm lwm cov kev ua, peb yuav qhia cov kev tsis sib haum.
Tsis tas li ntawd xwb, kuv xav nco, yog tias koj xav tau qhov kev txhim kho ntxiv ntawm qhov kev pab cuam los ntawm cov archive, ua ntej xyuas seb nws yog nyob rau hauv qhov chaw pov thawj los yog ib tus neeg pob khoom rau koj qhov kev faib tawm, vim nws yooj yim dua ua qhov kev txhim kho.
Saib kuj: Txhim kho RPM-packages / deb-packages nyob Ubuntu
Method 1: Unzip
Txawm tias hauv Ubuntu Unzip nws yog ib qho chaw ua haujlwm uas tso cai rau koj tswj cov ntaub ntawv ntawm yam koj xav tau, tab sis nyob hauv lwm lub Linux ua qhov kev pabcuam no yuav tsum tau ploj lawm, yog li cia peb pib los ntawm kev txhim kho nws, thiab mam li kam nrog kev sib txuas lus.
- Pib ntawm khiav "Terminal" txhua txoj hauv kev yooj yim, piv txwv li, los ntawm daim ntawv qhia zaub mov.
- Sau pawg neeg ntawm no
sudo apt nruab unzip
rau kev faib khoom ntawm Ubuntu lossis Debian, lossissudo yum nruab unzip zip
rau versions siv Red Hat hom ntawv packs. Tom qab qhia txog, nyem rau ntawm Sau. - Qhia kom meej tus password kom qhib lub hauv paus nkag, vim peb siv qhov kev hais kom ua sudo, ua tau zoo tag nrho cov kauj ruam sawv cev ntawm tus superuser.
- Tam sim no nws tseem nyob tos tos kom tag nrho cov ntaub ntawv ntxiv rau kev khiav hauj lwm. Nyob rau hauv rooj plaub ntawm Unzip ntawm koj lub computer, koj yuav tau txais kev ceeb toom.
- Tom ntej no, koj yuav tsum paub qhov chaw ntawm qhov kev ntshaw archive, yog tias koj tsis tau ua nws ua ntej. Ua li no, qhib cov kwv cia khoom, txoj cai-nias rau ntawm nws thiab xaiv qhov khoom "Cov khoom".
- Nco ntsoov txoj kev ntawm cov niam txiv lub npe, nws tseem ceeb thaum lub sij hawm qhib unpacking.
- Rov qab mus "Terminal" thiab mus rau cov niam txiv ntawv siv
cd / tsev / neeg / khoob
qhov twg tus neeg siv - username, thiab nplaub tshev - lub npe ntawm daim nplaub tshev uas qhov chaw khaws tus cia. - Kom pib txheej txheem unpacking, cia li sau
unzip sis
qhov twg nplaub tshev - archive lub npe .zip thaum nws tsis tsim nyog ntxiv, lub chaw tso dej yuav txiav txim xyuas hom ntawv nws tus kheej. - Tos rau kab nkag tshiab tuaj tshwm. Yog tias tsis muaj teeb meem tuaj, ces txhua yam zoo mus thiab koj tuaj yeem mus rau niamtxiv daim nplaub tshev ntawm cov archive kom nrhiav tau ib cov ntawv uas twb ua dhau los lawm.
- Yog tias koj xav muab cov ntaub ntawv tso tawm hauv lwm daim ntawv, koj yuav tau ua ntawv thov ntxiv. Tam sim no koj yuav tsum mus sau npe
unzip folder.zip -d / txoj kev
qhov twg / txoj kev - lub npe ntawm daim nplaub tshev uas cov ntaub ntawv yuav tsum tau txais kev cawmdim. - Tos rau kev ua txhua yam khoom.
- Koj tuaj yeem pom cov ntsiab lus ntawm cov lus sam thiaj
unzip -l folder.zip
nyob hauv niam txiv lub npe. Koj yuav pom tag nrho cov ntaub ntawv pom.
Raws li kev sib cav ntxiv uas siv nyob rau hauv Unzip company, ntawm no peb yuav tsum nco ntsoov ob peb yam tseem ceeb:
-u
- hloov cov ntaub ntawv muaj nyob rau hauv cov directory;-v
- nthuav tawm ntawm tag nrho cov muaj ntaub ntawv hais txog qhov khoom;-P
- teem caij ib lo lus zais kom tau txais kev tso cai kom muab cov archive (hauv qhov case of encryption);-n
- tsis txhob sau cov ntaub ntawv uas twb muaj lawm nyob rau hauv qhov chaw ntawm kev muab khoom tawm;-j
- raug nqi ntau tus qauv ntawm cov archive.
Raws li koj tau pom, tsis muaj dab tsi yooj yim hauv kev tswj cov dej hu ua Unzip, tab sis nws tsis haum rau tag nrho cov neeg siv, yog li no peb qhia koj kom paub koj tus kheej nrog ob txoj kev, qhov twg ntau hom tshuaj yuav tsum muaj ntaub ntawv.
Txoj kev 2: 7z
Lub 7z multifunctional archive chaw ua hauj lwm yog tsim los tsis yog rau kev sib koom tes nrog hom ntaub ntawv ntawm tib lub npe xwb, tab sis kuj txhawb lwm cov hom nrov, nrog rau ZIP. Rau operating systems ntawm Linux, muaj kuj yog ib tug version ntawm no lub cuab tam, yog li peb xav hais tias koj to taub koj tus kheej nrog nws.
- Qhib console thiab download qhov tseeb version ntawm 7z los ntawm tus nom repository los ntawm nkag mus rau qhov hais kom ua
sudo apt nruab p7zip-tag nrho
, thiab cov tswv ntawm Red Hat thiab CentOS yuav tsum tau qhia kom meejsudo yum nruab p7zip
. - Tshawb xyuas qhov sib ntxiv ntawm cov ntaub ntawv tshiab rau lub system los ntawm kev xaiv qhov kev pom zoo.
- Tsiv mus rau lub nplaub tshev uas qhov chaw khaws cia, raws li tau hais nyob rau hauv hom dhau los siv qhov kev hais kom ua
cd
. Ntawm no, saib cov ntsiab lus ntawm qhov khoom ua ntej yuav muab unpacking, sau ntawv hauv console7z l folder.zip
qhov twg folder.zip - lub npe ntawm tus yuav tsum tau archive. - Tus txheej txheem ntawm unpacking mus rau hauv lub nplaub tshev tam sim no yog nqa tawm los ntawm
7z x folder.zip
. - Yog tias cov ntaub ntawv muaj nrog tib lub npe yeej muaj, lawv yuav raug muab hloov los sis raug xa rov qab. Xaiv ib qho kev xaiv raws li koj tus kheej nyiam.
Raws li nyob rau hauv rooj plaub ntawm Unzip, muaj ntau ntau cov lus ntxiv hauv 7z, peb qhia koj kuj yuav tsum paub koj tus kheej nrog cov neeg tseem ceeb:
e
- rho cov ntaub ntawv nrog txoj kev (thaum sivx
txoj kev tshua tib yam);t
- kos lub zeem muag rau kev ntseeg;-p
- Qhia kom meej tus password ntawm qhov archive;-x + daim ntawv teev cov ntaub ntawv
- tsis txhob tshem cov khoom siv;-Yog
- cov lus teb rau txhua cov lus nug uas tshwm sim thaum lub sij hawm qhib unpacking.
Koj tau txais cov lus qhia txog yuav ua li cas siv ob tug ZIP uas tsis nrov npe. Them nyiaj tshwj xeeb rau cov lus sib tham ntxiv thiab tsis txhob hnov qab thov lawv yog tsim nyog.