It is not possible to set the date beyond January 18, 2038.įor example: $ touch -a -m -t 203801181205.09 tgs.txt If the value of the YY is between 00 and 37, the value of the CC digits is assumed to be 20. If the value of the YY is between 70 and 99, the value of the CC digits is assumed to be 19.
By default it will take the current system time and update the atime field.īefore touch command is executed: $ stat tgs.txt We can change the access time of a file using -a option.
You then view the archive and see the filenames follow this convention: home/username/somefile How will you extract just the files for the user called fred? You archived your users’ directories into a file called.
Files that are present in the archive might overwrite files in /home.The /home directory will be restored with the contents of homedirs.tbz.The command will print out each filename as it is processed.Only files starting with /home will be extracted from the archive.Given the command tar –cvjf homedirs.tbz /home, which of the following are true? (choose two).Matching operators anything starting with a, b, or c will be added.a is the directory that will be prepended to files b and c are files inside it.Nothing -cvjf only expects one parameter.In the command tar -cvjf foo.tbz a b c, what are a, b, and c?.Which command will show what is inside the compressed tarball with a name of ?.Which flag would you pass to tar in order to have it make a new archive?.Which command would you use to archive the Documents directory and compress it with bzip2 compression?.How would you obtain output similar to the following? compressed uncompressed ratio uncompressed_name 278168 1016950 72.6% tags An error you forgot to specify the file with -f.holds a compressed version of myfile.tar.An error you forgot to pass the name of the output file.myfile.tar is unarchived into the current directory.Decompresses to an identical version as the original.Usually results better compression than lossless.In general, for which of the following would you want to use lossless compression?.Removing the high order bit from each byte.Storing most of the data on removable media and just leaving a pointer.Last Updated on Octoby Admin NDG Linux Essentials 2.0 Chapter 9 Exam Answers