What is the tar command used for? Give all its uses.

What will be an ideal response?


The tar command can be used to backup files and directories in a single file and then restore all or some of them on as needed basis. You can also create an archive of files and directories if you need to save and/or send them to someone via e-mail. You normally need to do this to archive files related to a project so that you can transfer them to someone via e-mail, ftp, or a secondary storage media (tape, floppy, or CD-ROM). The primary reason for making an archive is the convenience of dealing with (sending or receiving) a single file instead of a complete directory hierarchy. Without an archive, the sender may have to send several files and directories (a file structure) that the receiver would have to restore in the correct order. Without an archiving facility, depending on the size of the file structure, the task of sending, receiving, and reconstructing the file structure can be very time-consuming. Archiving also saves disk space. Thus you can also archive files and directories that are not to be used for quite some time and save disk space. LINUX/UNIX has several utilities that can be used for archiving files, including afio, cpio, dump, and tar. tar is the most commonly used of these utilities.

Computer Science & Information Technology

You might also like to view...

Which boolean operation is described by the following table?


a. or
b. and
c. not
d. none of the above

Computer Science & Information Technology

Suppose isPrime is a boolean variable, which of the following is the correct and best statement for testing if isPrime is true.

a. if (isPrime = true) b. if (isPrime == true) c. if (isPrime) d. if (!isPrime = false) e. if (!isPrime == false)

Computer Science & Information Technology

When a query is saved, the query results are not saved. Instead the structure of the query is saved so

that it can be used again using the most current records. Indicate whether the statement is true or false

Computer Science & Information Technology

What is the difference between files and members?

What will be an ideal response?

Computer Science & Information Technology