CompTIA Linux+ (XK0-005) — Question 213
Which of the following should be used to verify the integrity of a file?
Answer options
- A. sha256sum
- B. fsck
- C. gpg -d
- D. hashcat
Correct answer: A
Explanation
The correct answer is sha256sum, as it generates a SHA-256 hash of a file, allowing for integrity verification by comparing the hash values. The fsck command is used for checking and repairing filesystems, gpg -d is meant for decrypting files, and hashcat is a password recovery tool, making them unsuitable for file integrity checks.