Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to unzip Tar file

## Untar files in Current Directory ##
tar -xvf filename.tar.gz

## Untar files in specified Directory ##
tar -xvf filename.tar.gz -C /path_name_for_unzip/

-x : extract
-C : specified directory
-v : Verbosely show the .tar file progress.
-f : filename of archive file
Comment

how to zip and unzip tar

Compress:
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file

Uncompress:
tar -xzvf archive.tar.gz

Legend:

-c: Create an archive.
-z: Compress the archive with gzip.
-v: Display progress in the terminal while creating the archive, also known as “verbose” mode. The v is always optional in these commands, but it’s helpful.
-f: Allows you to specify the filename of the archive.
-x: extract
Comment

PREVIOUS NEXT
Code Example
Shell :: install composer on ubuntu 20.04 
Shell :: list only directories in bash 
Shell :: docker start exited container 
Shell :: install get cli 
Shell :: ubuntu folder size 
Shell :: WARNING: apt does not have a stable CLI interface. Use with caution in scripts. 
Shell :: git deinit repo 
Shell :: linux strip foldder name from path 
Shell :: npm install version 
Shell :: npm install strapi 
Shell :: install gulp ubuntu 
Shell :: how to use xampp localhost 
Shell :: how to set up git user 
Shell :: Could not resolve HEAD to a revision 
Shell :: insert a line at a line number sed 
Shell :: google shell 
Shell :: edit path linux 
Shell :: turn off monitor commend linux 
Shell :: apt update package 
Shell :: get public key pem from cert 
Shell :: how to configure git and github 
Shell :: Re-run cmake with a different source directory. 
Shell :: linux shell parameter 
Shell :: how to create folder in github 
Shell :: bash: conda: command not found 
Shell :: start beef kali linux 
Shell :: git create tag and push 
Shell :: log cpu usage on linux 
Shell :: pm2 process disappears after reboot 
Shell :: mocha watch mode 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =