What is the difference between passing -y and -a to fsck?
A. The -a option automatically zeros corrupted blocks. The -y option answers yes to all questions.
B. The -y option should only be used in a scripted environment.
C. The -a option fixes all problems that don't need input from the user. The -y option answers yes to all questions.
D. They are synonymous
Answer: C
[root@Linux user]# fsck --help
Usage:
fsck [options] -- [fs-options] [ ...]
Check and repair a Linux filesystem.
Options:
-A check all filesystems
-C [] display progress bar; file descriptor is for GUIs
-l lock the device to guarantee exclusive access
-M do not check mounted filesystems
-N do not execute, just show what would be done
-P check filesystems in parallel, including root
-R skip root filesystem; useful only with '-A'
-r [] report statistics for each device checked;
file descriptor is for GUIs
-s serialize the checking operations
-T do not show the title on startup
-t specify filesystem types to be checked;
is allowed to be a comma-separated list
-V explain what is being done
-?, --help display this help
--version display version
See the specific fsck.* commands for available fs-options.
For more details see fsck(8).
[root@Linux user]#
No comments:
Post a Comment