what is tar command and what are the different types of tar
commands?

Answers were Sorted based on User's Feedback



what is tar command and what are the different types of tar commands?..

Answer / madhu

tar is an utility used for archiving files .

tar cvf archive_name file1 file2...

for extracting a tar file

tar xvf archive_name

Regards,
Madhu

Is This Answer Correct ?    11 Yes 2 No

what is tar command and what are the different types of tar commands?..

Answer / suitable

tar command is used to create an archiving.

the syntex is:
tar cvf archive_name file1 file2 ...

Is This Answer Correct ?    8 Yes 2 No

what is tar command and what are the different types of tar commands?..

Answer / pitambar mishra

tar command is used for create archiving so that data transfer
will de easier.

1. Create a tar archive :
tar -cvf tarfilename.tar path_of_file
2. Extract a tar archive :
tar -xvf tarfilename.tar
3. See the contents of a tar archive :
tar -tvf tarfilename.tar
4. Add a new file to an existing tar archive :
tar -rf tarfilename.tar newfile
5. Remove a file from an existing tar archive :
tar --delete -file=tarfilename.tar file_to_remove
6. Tar and zip at same time :
tar -cvzf
7. Tar and unzip at same time :
tar -xvzf

Is This Answer Correct ?    2 Yes 0 No

what is tar command and what are the different types of tar commands?..

Answer / asit

tar is used for both zip and unzip the files or directories
in unix.
tar cvzf zip_file.tar zip_file
tar xvzf zip_file.tar

Is This Answer Correct ?    1 Yes 0 No

what is tar command and what are the different types of tar commands?..

Answer / yuvaevergreen

archive and lot of options

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix Commands Interview Questions

What is the command to check ports active in UNIX?

4 Answers   Accenture, IBM,


what is the command to list files in a directory in UNIX?

8 Answers  


What is the first character of the output in ls l command?

0 Answers  


In UNIX, what is the command to edit contents of the file?

9 Answers  


What is updatedb?

0 Answers  






in UNIX,How to copy file into directory?

5 Answers  


What command is used to replace the existing string with some other?

8 Answers   TCS,


What is nr in awk command?

0 Answers  


Write a command that will output the sorted contents of a file named in.txt and place the output in another file named out.txt, while at the same time excluding duplicate entries.

1 Answers  


What command will bring user back to their home directory in UNIX?

13 Answers   IBM, Wipro,


How to know a process is a zombie or orphan process?

3 Answers   Perot Systems,


How can i know my Filesystem and its current usage in my prod UNIX system?

4 Answers   HCL, IBM,


Categories