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

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

Creating tar.gz

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

tar.gz

tar -xvzf community_images.tar.gz
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 :: change user password on mac terminal 
Shell :: composer install one line 
Shell :: flutter cmdline-tools component is missing 
Shell :: git go back to previous commit 
Shell :: how to sort tags on git tag 
Shell :: intel hd 4000 ubuntu driver 
Shell :: docker-compose logs path 
Shell :: pip install local directory 
Shell :: unzip specific folder linux 
Shell :: see changes git command line 
Shell :: shell curl extract bearer token from response 
Shell :: Bash print elements in array 
Shell :: where are timezones located linux 
Shell :: how to compile 64 bit nasm 
Shell :: CMake Error at src/CMakeLists.txt:10 (find_package): By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "OpenCV", but CMake did not find one. 
Shell :: close terminal commang 
Shell :: cannot send file to server with nginx 
Shell :: docker install 
Shell :: should mocha and chai be npm installed as dependencies or dev dependencies 
Shell :: create new repository on the command line 
Shell :: how to check requirements.txt was installed correctly 
Shell :: unity download android sdk 
Shell :: print value mongodb shell 
Shell :: How to find a process running on a linux machine from terminal 
Shell :: script to install cf cli in linux 
Shell :: vieuw the MOTD linux 
Shell :: how to install openvpn connect on ubuntu 20.04 
Shell :: open directory 
Shell :: change wallpaper ubuntu 
Shell :: create mysql user and database from script 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =