Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

tar gz compress extract

# compress
tar -czvf projects.tar.gz projects/
# extract
tar -xzvf projects.tar.gz

-c, --create
      create a new archive
-x, --extract, --get
      extract files from an archive
-z, --gzip, --gunzip --ungzip
-v, --verbose
      verbosely list files processed
-f, --file ARCHIVE
      use archive file or device ARCHIVE

tar [-] A --catenate --concatenate | c --create | d --diff --compare | --delete | r --append | t --list |
    --test-label | u --update | x --extract --get [options] [pathname ...]
Comment

extract tar gz overwrite

# tar -xvf command will overwrite the files. Suppose if you use “-k” then it will keep your old files.
tar -xvf --overwrite archive.tar.gz
Comment

tar extract gz

# compress
tar czvf < archive_name >.tar.gz < path >
# extract
tar xzvf < archive_name >.tar.gz
tar xzvf < archive_name >.tar.gz  -C /home/usera/tmp
Comment

extract tar gz

tar xvzf file.tar.gz
Comment

PREVIOUS NEXT
Code Example
Shell :: How to kill all tmux sessions (or at least multiple sessions) from the CLI? 
Shell :: command to check size of folder in linux 
Shell :: kali linux gui in wsl2 
Shell :: uninstall tesseract 4 
Shell :: get all containers in linux 
Shell :: change last commit date 
Shell :: ubuntu screen remove 
Shell :: sed remove space 
Shell :: How do I select which GPU to run a job on? 
Shell :: bash windows open folder in exporer 
Shell :: linux save http content to file 
Shell :: arch linux select java version 
Shell :: sudo apt-get update 
Shell :: remove docker ubuntu 
Shell :: angular install ng-apexcharts 
Shell :: how to remove unused pip dependencies on mac 
Shell :: bastighg 
Shell :: cordova plugin list save 
Shell :: install jq command 
Shell :: descomprimir tar gz 
Shell :: pyinstaller no console 
Shell :: mysql inline password command line 
Shell :: how to make a githook file executable 
Shell :: powershell disk space 
Shell :: windows powershell as an admin 
Shell :: gcloud select project 
Shell :: install jq on windows 
Shell :: docker clean images 
Shell :: wsl folder linux windows access 
Shell :: datetime calculation in shell 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =