Why is the tar command preferred over the cp -r command for creating backup copies of directory hierarchies?
What will be an ideal response?
You can use the tar command to copy one directory to another directory. You can also use the cp -r (or cp -R) command to do so, but the disadvantage of using this command is that the file access permissions and file modification times aren’t preserved. The access permissions of the copied files and directories are determined by the value of umask and the modification time is set to current time. More commonly, the tar command is used to archive the source directory, create the destination directory, and untar (unpack) the archived directory in this latter directory. The entire task can be performed with one command by using command grouping and piping.
You might also like to view...
The PMT function uses three required arguments and no optional arguments
Indicate whether the statement is true or false
The contents of this type of file can be viewed in an editor such as Notepad.
a. text file b. binary file c. English file d. human-readable file
Programmers rarely use indefinite loops when validating input data.
Answer the following statement true (T) or false (F)
The Internet connects millions of computers and resources across the world via wires, cables, and satellite.
a. true b. false