Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

tar gz

# 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

untar tar.gz

tar -xzf file.tar.gz
Comment

tar.gz terminal

tar -xzvf archive.tar.gz
Comment

tar gz linux command

tar -czvf projects.tar.gz projects/
Comment

linux tar 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

unrachive .tar.gz



tar -xvzf community_images.tar.gz
Also, to extract in a specific directory

for eg. to extract the archive into a custom my_images directory .

tar -xvzf community_images.tar.gz -C my_images
Comment

linux extract tar.gz

tar –xvzf documents.tar.gz
Comment

Creating tar.gz

tar cfz <Required tarball name> <File names>
Comment

tar.gz

tar -xvzf community_images.tar.gz
Comment

how to run tar.gz file in linux

1. Extract it all
2. Come to the folder in which you extracted it
3. ./(filename)
4. make
5. sudo make install
Comment

make tar.gz

tar -czvf projects.tar.gz $HOME/projects/
Comment

Linux tar.gz

tar -xzf archive-name.tar.gz
cd archive-name
./configure
make
sudo make install
Comment

PREVIOUS NEXT
Code Example
Shell :: install pypy on ubuntu 
Shell :: all changed files git 
Shell :: not a git repository after clone 
Shell :: install jetstream 
Shell :: git unstage 
Shell :: bash loggin as root 
Shell :: GImp install ubuntu terminal command 
Shell :: linux "echo -e" 
Shell :: how to save file in linux 
Shell :: github actions run shell script 
Shell :: docker compose install 
Shell :: download project from github 
Shell :: run artisan queue --once loop 
Shell :: way to specify single file in docker compose up 
Shell :: install kubectl on ubuntu 
Shell :: xubuntu desktop 
Shell :: how to send email with body and attachment in unix 
Shell :: trickle usage 
Shell :: rasberry pie gsm internet browsing 
Shell :: manueldeveloper github 
Shell :: router dom react 
Php :: php hide errors 
Php :: laravel order by random 
Php :: explode comma php 
Php :: php filter validate email 
Php :: php turn off warnings and notices 
Php :: automatic years php 
Php :: storage image not showing in laravel 
Php :: migrate single file in laravel 
Php :: your requirements could not be resolved to an installable set of packages. composer 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =