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 ctrl d?

0 Answers  


How to find the files that are accessed before 10 minutes?

5 Answers   Amazon,


Write a command to display a file’s contents in various formats?

0 Answers  


why unix commands can be divided into internal and external commands?

3 Answers   Informatica,


What is grep in bash?

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  


Explain command to display different lines that are found when compare two files?

0 Answers  


Why is awk called awk?

0 Answers  


how will u execute a file in unix

8 Answers   QA,


What are the dos commands?

0 Answers  


how to find the 51th record of a file containing 100 records in unix.

12 Answers   IBM,


Sorry to all Technical person for mistake of Question. Now i am post currect question Why copied file permission is changed in destination. When i give all permission i.e 777 to file and copy that to other location in destination the permission is 755. But if give permission 555 in destination that file permission is 555 and if give permission 444 to file after copy in destination the file permission is 444. These all are happening in normal user. How the umask value is calculate here really i am not understand. Please write the proper answer. Thanks in Advance

3 Answers   TCS,


Categories