John works as a Network Administrator for Perfect Solutions Inc. The company has a Linux-based network. He is working as a root user on the Linux operating system. He wants to delete his private.txt file from his operating system. He knows that the deleted file can be recovered easily. Hence, he wants to delete the file securely. He wants to hide the shredding, and so he desires to add a final overwrite of the file private.txt with zero. Which of the following commands will John use to accomplish his task?
According to the scenario, John will use the shred -vfuz private.txt command. The shred command with the -z option adds a final overwrite
with zeros to hide shredding.
Answer option D is incorrect. This command removes the file forcibly, but it does not perform a secure deletion.
Answer option B is incorrect. This command overwrites the file forcibly with changing permissions to allow writing.
Answer option A is incorrect. The rmdir command is used to remove the directories but not the files. The rmdir command is used to remove a
directory in a Linux computer.
Syntax:
rmdir [options] <directory name>
Example:
The following command will remove a directory named xdir from the /home/user directory:
rmdir /home/user/xdir
Currently there are no comments in this discussion, be the first to comment!