command to run .tar file


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers command to run .tar file
# 1  
Old 04-18-2011
command to run .tar file

How to install a file in unix with an extension .tar?
# 2  
Old 04-18-2011
tar tar is an archiver. It does not install anything. When you have a tar file, you can do the following:

List contents:
Code:
tar tvf my.tar

Extract contents:
Code:
tar xvf my.tar

You can do much more with tar; maybe checkout the man page for it.
# 3  
Old 04-18-2011
so with tar i can only list the content of the file? what if i have to install a file . what would be the extension.
# 4  
Old 04-18-2011
No. tar is an application that creates archives using the tar format. It's like ZIP or RAR on MS platforms. You don't install it, it's not a software package, and you can't run it, it's not an application. Use the second command zaxxon gave to extract (or "expand") the contents of the archive.
# 5  
Old 04-18-2011
Zaxxon & puldi thank u very much for the reply

---------- Post updated at 05:02 PM ---------- Previous update was at 05:01 PM ----------

can i install file with extension .rpm?
# 6  
Old 04-18-2011
Yes, if it is built for your system and you have rpm (RedHat Package Manager) installed.
Code:
rpm -vi my.rpm

This User Gave Thanks to zaxxon For This Post:
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

UNIX command to check if file name ends with .tar OR if the file is a tar file

Hello Team, Would you please help me with a UNIX command that would check if file is a tar file. if we dont have that , can you help me with UNIX command that would check if file ends with .tar Thanks in advance. (10 Replies)
Discussion started by: sanjaydubey2006
10 Replies

2. Shell Programming and Scripting

Script for telnet and run one command kill it and run another command using while loop

( sleep 3 echo ${LOGIN} sleep 2 echo ${PSWD} sleep 2 while read line do echo "$line" PID=$? sleep 2 kill -9 $PID done < temp sleep 5 echo "exit" ) | telnet ${HOST} while is executing only command and exits. (5 Replies)
Discussion started by: sooda
5 Replies

3. Shell Programming and Scripting

tar command to explore multiple layers of tar and tar.gz files

Hi all, I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
1 Replies

4. Solaris

can't run file tar

Hi all, i have a problem. i get xamp to my server. wget Download XAMPP from SourceForge.net 100% 78,086,734 11.6M/s in 6.5s 2011-02-27 10:05:11 (11.5 MB/s) - `xampp-linux-1.7.4.tar.gz.4' saved After finish download,i run file tar tar xvfz xampp-linux-1.7.4.tar.gz -C /opt Then i get... (11 Replies)
Discussion started by: foxlegend
11 Replies

5. UNIX for Dummies Questions & Answers

Compress the file using Tar command

Hi, When i am tar the file particular ,csv file format in a folder i am receiving the error Command: tar cf New_data.tar /new/file/mari/getdata/small/*.xml Arguements too long But sometimes i am able to compress other folder but the tar folder contains all the file format and... (10 Replies)
Discussion started by: marivinay
10 Replies

6. Shell Programming and Scripting

tar command dont tar to original directory

HI, if I have a tarfile called pmapdata.tar that contains tar -tvf pmapdata.tar -rw-r--r-- 0/0 21 Oct 15 11:00 2009 /var/tmp/pmapdata/pmap4628.txt -rw-r--r-- 0/0 21 Oct 14 20:00 2009 /var/tmp/pmapdata/pmap23752.txt -rw-r--r-- 0/0 1625 Oct 13 20:00 2009... (1 Reply)
Discussion started by: borderblaster
1 Replies

7. UNIX for Dummies Questions & Answers

tar -cvf test.tar `find . -mtime -1 -type f` only tar 1 file

Hi all, 4 files are returned when i issue 'find . -mtime -1 -type f -ls'. ./ora_475244.aud ./ora_671958.aud ./ora_934052.aud ./ora_934050.aud However, when I issued the below command: tar -cvf test.tar `find . -mtime -1 -type f`, the tar file only contains the 1st file -... (2 Replies)
Discussion started by: ahSher
2 Replies

8. AIX

append file with tar command

hello, can i append files into tape without clear this tape thanks for help (3 Replies)
Discussion started by: mbakry23
3 Replies

9. UNIX for Advanced & Expert Users

How to use the command Tar to find a file

Hello, I am just using the command Tar to find if a file was backuped on my tape. Can you help me with that command. I am using the command : tar -tvf /dev/rmt/4m /kcc_dms/AC7/c15a* > toto.txt to find all files c15a* in these subdirectories on my tape. But it doesn't work correctly. Can... (2 Replies)
Discussion started by: steiner
2 Replies

10. UNIX for Dummies Questions & Answers

Dynamic includes file for tar command

I'm writing a script to tar a list of log files. The tar command calls an includes file, which lists all of the log files that I want. My apache web server, however, creates a log file every day with the datestamp (mmddyy) at the end of it. I want the includes file to get the previous day's... (1 Reply)
Discussion started by: kadishmj
1 Replies
Login or Register to Ask a Question