Lus Nug: Yuav Ua Li Cas Untar Tar File Hauv Linux?

Yuav ua li cas qhib lossis Untar cov ntaub ntawv "tar" hauv Linux lossis Unix:

  • Los ntawm lub davhlau ya nyob twg, hloov mus rau cov npe uas koj lub file.tar tau rub tawm.
  • Ntaus tar -xvf yourfile.tar kom rho tawm cov ntaub ntawv mus rau cov npe tam sim no.
  • Los yog tar -C / myfolder -xvf yourfile.tar rho tawm mus rau lwm phau ntawv.

Kuv yuav qhib cov ntaub ntawv tar hauv Terminal li cas?

Cov kauj ruam

  1. Qhib lub davhlau ya nyob twg.
  2. Hom tar.
  3. Sau ib qhov chaw.
  4. Type -x.
  5. Yog hais tias cov ntaub ntawv tar kuj compressed nrog gzip (.tar.gz lossis .tgz extension), ntaus z .
  6. Hom f.
  7. Sau ib qhov chaw.
  8. Ntaus lub npe ntawm cov ntaub ntawv uas koj xav rho tawm.

Kuv yuav qhib cov ntaub ntawv tar XZ li cas hauv Linux?

Extracting lossis Uncompressing tar.xz Cov ntaub ntawv hauv Linux

  • Ntawm Debian lossis Ubuntu, ua ntej nruab pob xz-utils. $ sudo apt-mus nruab xz-utils.
  • Extract ib .tar.xz tib txoj kev koj yuav rho tawm tej ntaub ntawv tar.__. $ tar -xf file.tar.xz. Ua tiav.
  • Txhawm rau tsim .tar.xz archive, siv tack c. $ tar -cJf linux-3.12.6.tar.xz linux-3.12.6/

Kuv yuav tsim cov ntaub ntawv tar hauv Linux li cas?

Yuav ua li cas rau tar cov ntaub ntawv hauv Linux siv kab hais kom ua

  1. Qhib lub davhlau ya nyob twg app hauv Linux.
  2. Compress tag nrho cov npe los ntawm kev khiav tar -zcvf file.tar.gz /path/to/dir/ hais kom ua hauv Linux.
  3. Compress ib cov ntaub ntawv los ntawm kev khiav tar -zcvf file.tar.gz /path/to/filename hais kom ua hauv Linux.
  4. Compress ntau cov ntaub ntawv teev npe los ntawm kev khiav tar -zcvf file.tar.gz dir1 dir2 dir3 hais kom ua hauv Linux.

https://commons.wikimedia.org/wiki/File:Captura_pantalla_manual_tar_linux.png

Zoo li cov ncej no? Thov qhia rau koj cov phooj ywg:
OS Today