CompTIA Linux+ (XK0-004) — Question 241
A user attempts to use the mount -a command but gets the following error: mount: mount point /mnt/test does not exist
Which of the following commands best describes the action the Linux administrator should take NEXT?
Answer options
- A. mount ג€"a /mnt/test
- B. mkdir ג€"p /mnt/test
- C. mdadm ג€"p /mnt/test
- D. mkfs /mnt/test
- E. touch /mnt/test
Correct answer: B
Explanation
The correct answer is B, as the mkdir -p command is used to create the directory /mnt/test, which is necessary before mounting. The other options do not resolve the issue: A attempts to mount without creating the directory, C is unrelated as mdadm is for managing RAID arrays, D formats the filesystem instead of creating a directory, and E only creates an empty file, not the required directory.