fbpx

usando el bendito tar

September 29, 2011

This is one way to create a .tar.gz file:

tar -cvzf

this means:
-c = create new archive
-v = be verbose
-z = compress using gzip
-f = filename to create for the new archive

for the directory dont to "directory/*" just to "directory" with no slash

filenames should end in ".tar.gz" as they are tarr'ed then zipped
 

tar -cvzf to_file.tar.gz from_folder
tar -cvzf to_file.tar.gz .
 
 
 

How to open or Untar a “tar.gz” file in Linux or Unix:
The following tutorial assumes the name of your file is yourfile.tar.gz Replace with your actual filename.

  1. From the terminal, change to the directory where yourfile.tar.gz has been downloaded.
  2. Type tar -zxvf yourfile.tar.gz to extract the file to the current directory.
  3. You can specify a different directory to extract to using -C parameter and a path to the directory as follows:
    Example: tar -C /myfolder -zxvf yourfile.tar.gz

How to open or Untar a “tar” file in Linux or Unix:

  1. From the terminal, change to the directory where yourfile.tar has been downloaded.
  2. Type tar -zxvf yourfile.tar to extract the file to the current directory.
  3. Or tar -C /myfolder -zxvf yourfile.tar to extract to another directory.
 
 
 
avatar
Gonzalo Escribano

Ver entradas

Most Recent

June 9, 2022

¿Qué son las DAO y cuáles son sus beneficios?

Es común en la historia contemporánea que haya cambios a partir de los avances en el campo de la...

Read More

June 2, 2022

¿Qué son las DeFi y por qué son el futuro de las finanzas?

Es común en la historia contemporánea que haya cambios a partir de los avances en el campo de la...

Read More

May 27, 2022

How to start a successful product build from scratch?

Creating a product from scratch could be a huge challenge. To achieve your business goals it’s important to develop...

Read More