XK0-006 Practice Test practice questions, page 5 of 7, with answer review and explanations.
Question 21
A Linux administrator needs to securely erase the contents of a hard disk. Which of the following commands is the best for this task?
sudo rm -rf /dev/sda1
sudo shred /dev/sda1
sudo parted rm /dev/sda1
sudo dd if=/dev/null of=/dev/sda1
Question 22
Which of the following utilities supports the automation of security compliance and vulnerability management?
SELinux
Nmap
AIDE
OpenSCAP
Question 23
Which of the following commands should an administrator use to see a full hardware inventory of a Linux system?
dmidecode
lsmod
dmesg
lscpu
Question 24
A Linux administrator needs to analyze a compromised disk for traces of malware. To complete the analysis, the administrator wants to make an exact, block-level copy of the disk. Which of the following commands accomplishes this task?
cp -rp /dev/sdc/* /tmp/image
cpio -i /dev/sdc -ov /tmp/image
tar cvzf /tmp/image /dev/sdc
dd if=/dev/sdc of=/tmp/image bs=8192
Question 25
A systems administrator needs to set the IP address of a new DNS server. Which of the following files should the administrator modify to complete this task?