Chapter 3: Security
- C. The
dd
command is used to create disk images, among other things. In this case, the input file is/dev/sda1
and the output file isoutput.img
. It’s also common to add theblocksize
option by using thebs
argument, such asbs=1M
. - C. The
tail
command provides the end portion of the file given as an argument. Adding the-f
option will cause the output to update as new lines are added to the file being tailed. - A. The
xz
command can compress and decompress files in a variety of formats, one of which is LZMA. - A. The
chgrp
command can be used to change group ownership of a file. The order ischgrp <groupname> <target>
. - C. The
-S
option displays output in a format such asu=rwx,g=rx,o=rx
. The other options listed do not exist. - D. The
/srv
hierarchy is used for data for server programs. The/etc
hierarchy is configuration information, while/var
is also data files but variable files such as mail spool files. The/tmp
directory is for temporary files....