Task 3.10 Flashcards
(12 cards)
What command is used to display filesystem information on /dev/sdb?
lsblk -f
What is the purpose of the command ‘mount -o ro /mnt/part2’?
To mount /mnt/part2 as a READ-ONLY partition
What command would you issue to create a file named hiya.txt in /mnt/part2?
echo hiya > /mnt/part2/hiya.txt
What command should be used to manually unmount partition 2?
umount /mnt/part2
What command do you use to confirm the unmounting of partition 2?
lsblk -f
What happens when you try to append to a file in a READ-ONLY partition?
An error message is displayed
Fill in the blank: To append ‘hiya’ to the hiya.txt file, you would use _______.
echo hiya»_space; /mnt/part2/hiya.txt
What command checks if the device is mounted?
mount
What command would you use to append ‘Its Monday afternoon!’ to hiya.txt?
echo Its Monday afternoon!»_space; /mnt/part2/hiya.txt
What command would you use to check the contents of the hiya.txt file?
cat /mnt/part2/hiya.txt
True or False: You can modify files on a READ-ONLY partition.
False
What is the expected outcome if you try to mount a partition that is already mounted?
An error message indicating the device is busy