1833151 Members
3353 Online
110051 Solutions
New Discussion

tar file

 
SOLVED
Go to solution
Cheung_2
Frequent Advisor

tar file

I have received a tar file that contains many files, except extract the tar file , how can I know what file is in the tar file? Thx.
Andy
2 REPLIES 2
Michael Tully
Honored Contributor
Solution

Re: tar file

First be sure the file is a tar file.

# file filename
if it reports 'tar file' then it is.

You can view the contents:

# tar tvf filename

To extract
# tar xvf filename (be sure to be in the directory you wish to be extracted to.
Anyone for a Mutiny ?
Ashwani Kashyap
Honored Contributor

Re: tar file

If you are sure it is a tar file simply do a
#tar -tvf .

YOu should see all the files in the tar file .