tar options

Create a new tar archive.
$ tar cvf archive_name.tar dirname/

Extract from an existing tar archive.
$ tar xvf archive_name.tar

View an existing tar archive.
$ tar tvf archive_name.tar

4.67
12
Wolfwood 90 points

                                    tar [options] [archive-file] [file or directory to be archived]

Options: 
-c : Creates Archive 
-x : Extract the archive 
-f : creates archive with given filename 
-t : displays or lists files in archived file 
-u : archives and adds to an existing archive file 
-v : Displays Verbose Information 
-A : Concatenates the archive files 
-z : zip, tells tar command that creates tar file using gzip 
-j : filter archive tar file using tbzip 
-W : Verify a archive file 
-r : update or add file or directory in already existed .tar file 

For more info read here 

4.67 (3 Votes)
0
4
10
Oddthinking 105 points

                                    # tar -cvf tecmint-14-09-12.tar /home/tecmint/

/home/tecmint/
/home/tecmint/cleanfiles.sh
/home/tecmint/openvpn-2.1.4.tar.gz
/home/tecmint/tecmint-14-09-12.tar
/home/tecmint/phpmyadmin-2.11.11.3-1.el5.rf.noarch.rpm
/home/tecmint/rpmforge-release-0.5.2-2.el5.rf.i386.rpm

4 (10 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
tar cmmand .tar linux tar command examples linux linux tar command stands for tar shell tar linux server tar ' linux server -tar command tar in linux what tar linux command example Windows tar command options what is tar command in linux tar command example linux how to tar linux shell tar make a tar linux create tar command in linux tar commands linux what does tar in linux do using command linux tar with shell script tar cmder commande tar unix linux opne .tar linux tar with * linux tar * linux command line create tar tar for linux what is tar linux linux tar man What is used of tar command ? tar command on linux tar command in windows cmd windows tar command tarz linux tar commandline tar on linux command line what does tar stand for in linux example tar command linux linux tar - tar in linux terminal running tar command linux using tar in linux tar linux command line tar cmd tar command syntax create tar linux command tar in linux command line shell tar command tar for cmd tar in windows cmd what does the tar command do in linux what is .tar linux linux tar examle how to use tar linux command linux terminal tar tar use linux tar command windows how to tar in linux what does tar do linux windows tar cmd syntax for tar command in linux cmd tar linux cmd tar use tar linux tar command in linux syntax what is tar command tar windows command prompt tar create command in linux tar command unix meaing of tar in cmd using tar linux tar unix command tar command in windows unix tar linux open tar tar t linux tar command in linux terminal linux tar file tar command\ tar cvf command line linux tar files tar a file in RHEL7 tar command in unix tar tvf how to access tar file in linux tar -zvcf linux tar -zvcf whats tar command in linux tar in windows 10 tar flags linux simple tar command tar guide how to tar a directory in linux with examples linux tar create install tar linux tar commend command tar tar options tar zxf command in linux linux:tar command example tar tool in linux tar linux commands use tar tar zxf command prompt tar zxf cvs tar xvf tar unix linux tar compress using tar command in linux tar extract linux example how to tar a directory in unix with examples tar syntax tar czf command tar example tar cvfz example linux tar file command tar.gz linux geeksforgeeks decompress tar.gz linux geeksforgeeks tar z option example tar commande tar linux bash tar command examples linux tar what is tar bash command tar extract command examples tar usage command line tar tar xvf example linux tar xvf tar -jfvx cmnd how to use tar in linux how to use tar tar - xvf tar gz example tar - cvzf linux .tar linux tar append example all options available with tar command tvf option in linux tar commando linux tar ezMPLES tar file linux command tar command line tar extract examples tar - cvf command cfz means in linux tar archive command tar examples what is tar in linux tar xvz use tar cmd tar linux command tar commands tar command in linux help tar cvzf tar linux examples .tar tar tar cvf command how to use tar command in linux add directory to tar file tar –xf ../a.tar command in linux tar cf folder command tar linux tar file command unix tar command tar in linux tar cvf exa,ple tar tvf meaning tar xvf tar untar example tlinux tar commands what is a tar file in linux tar [] linux tar xvf command in linux tar bash example linux command tar cli tar example tar linux untar command in linux with examples tar compress examples why do we use xvf in linux how to tar a directory in linux example tar file in linux command tar command in linux with examples bash tar command what does tar do in linux linux bash tar tar x examples in linux what is a tar linux linux tar command tar gzip example tar options linux tar cvf to tar a directory tar cvf tar.gz example tar command in linux tar command linux tar gzip and tar command with examples tar xvf command tar command linux tar zxvf arguùments how to use tar command tar add directory to archive example tar file linux tar options
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source