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 :: remove trailing slash from nginx 
Shell :: undo most recent commit 
Shell :: git diff two commits 
Shell :: how to check pyqt version 
Shell :: install python docker 
Shell :: how to know ROS path 
Shell :: git remember login 
Shell :: linux bash temporary file 
Shell :: docker compose install centos 8 
Shell :: check all running processes linux 
Shell :: bash not equal 
Shell :: How to list manually installed packages in ubuntu 
Shell :: npm fibers windows error 
Shell :: make pm2 auto-boot at server restart 
Shell :: mkdir with permissions 
Shell :: gradle git bash terminal weird characters 
Shell :: remove yum package 
Shell :: how to update pg_dump version linux 
Shell :: sourcetree permission denied (publickey) github mac 
Shell :: how to run code from github 
Shell :: add anaconda to bash 
Shell :: while bash one line 
Shell :: commit git 
Shell :: user no login centos 
Shell :: install react react testing library 
Shell :: This repository has moved 
Shell :: how to install phpmyadmin with nginx on ubuntu 20.04 
Shell :: proxy_connect_timeout nginx ingress 
Shell :: add husky commitlint 
Shell :: instal maven in mac brew 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =