Which of the following commands will erase the contents of the /dev/sdb3 partition?
A.
rm /dev/sdb3
B.
dd if=/dev/zero of=/dev/sdb3
C.
dd of=/dev/zero if=/dev/sdb3
D.
umount /dev/sdb3
题解
「rm」指令可以移除文件。
「dd」可以字节为单位,来拷贝设备或是文件数据。
「umount」指令用来卸载文件系统。
由于题目要求要清除整个分割区,因此应选用「dd」指令。「dd」指令的「if」设置值表示输入的来源设备或文件,「of」设置值表示输出的目标设备或文件。
因此这题答案为选项「B」。
