exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 104 discussion

Actual exam question from CompTIA's XK0-005
Question #: 104
Topic #: 1
[All XK0-005 Questions]

A Linux systems administrator is configuring a new filesystem that needs the capability to be mounted persistently across reboots. Which of the following commands will accomplish this task? (Choose two.)

  • A. df -h /data
  • B. mkfs.ext4 /dev/sdc1
  • C. fsck /dev/sdc1
  • D. fdisk -l /dev/sdc1
  • E. echo "/data /dev/sdc1 ext4 defaults 0 0" >> /etc/fstab
  • F. echo "/dev/sdc1 /data ext4 defaults 0 0" >> /etc/fstab
Show Suggested Answer Hide Answer
Suggested Answer: BF 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
linux_admin
8 months, 4 weeks ago
Selected Answer: BF
mkfs.ext4 /dev/sdc1 - This command creates the ext4 filesystem on the device /dev/sdc1. echo "/dev/sdc1 /data ext4 defaults 0 0" >> /etc/fstab - This command appends a line to the /etc/fstab file that specifies the device to be mounted at a specific mount point persistently across reboots. After running these commands, the new filesystem will be created and automatically mounted at the specified mount point every time the system reboots.
upvoted 3 times
...
Ckl22
10 months, 2 weeks ago
Selected Answer: BF
Answer here is BF "modify the /etc/fstab text file to automatically mount the new partition by opening it in an editor and adding the following line: /dev/ xxx 1 /data ext4 defaults 1 2 where xxx is the device name of the storage device" https://learning.oreilly.com/library/view/mastering-linux-system/9781119794455/b01.xhtml
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago