LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-01-2012, 08:34 PM   #1
Kalai
LQ Newbie
 
Registered: Jul 2012
Posts: 3

Rep: Reputation: Disabled
tar tvf


Hi,

I'm very new to unix. Can someone explain what tvf in "tar tvf" command means? Please?

Regards
Kalai
 
Old 07-01-2012, 08:37 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,369

Rep: Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753
http://linux.die.net/man/1/tar

t = table of contents
v = verbose
f = file

you should bookmark that. You can also get that info from your own machine
Code:
man tar
 
Old 07-01-2012, 08:48 PM   #3
Kalai
LQ Newbie
 
Registered: Jul 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks Chrism01! So when I say "tar tvf XYZ.tar" does the 'f' in tvf refer to 'XYZ.tar' file? Sorry I know it's a stupid question but I just want to make sure.
 
Old 07-01-2012, 11:51 PM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Again, that's covered in the man page. From the link posted above:

Quote:
-f, --file=ARCHIVE
use archive file or device ARCHIVE
 
1 members found this post helpful.
Old 07-02-2012, 12:55 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,369

Rep: Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753
Indeed; just remember that for most of the flags, order is not important, but that one is (-f); it must come just before the file it refers to.
Have a good read of that link.
 
Old 07-02-2012, 07:14 AM   #6
VDP76
Member
 
Registered: Apr 2010
Location: Bayreuth, Germany
Distribution: CrunchBang Linux (#!)
Posts: 111

Rep: Reputation: 19
Quote:
Originally Posted by Kalai View Post
Can someone explain what tvf in "tar tvf" command means? Please?
hi,
as it has been pointed out above here, when you're wondering about option and/or syntax of a particular application, its manual most likely contains the information you're looking for. Just try opening a terminal and typing
Code:
man application_name
in this specific case would be
Code:
man tar
(the output is exactly as in chrism01's link).
To learn how to use man pages type
Code:
man man
.
Good luck and have fun learning Linux..

p.s.: if you're happy with the answers you got here, use the "thread tools" to mark it as [SOLVED]
 
Old 07-02-2012, 06:50 PM   #7
Kalai
LQ Newbie
 
Registered: Jul 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks All for your help!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tar -tvf comman bring up input/output errror KarenEni Linux - Newbie 1 07-06-2011 01:59 PM
Tape command Redhat es 3 $ tar tvf /dev/st0 is not working. ssinha Linux - Newbie 2 03-18-2010 05:25 AM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 02:53 AM
Tar -tvf command causes system hang kaplan71 Red Hat 4 11-10-2006 07:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration