Task 3.10 Flashcards

(12 cards)

1
Q

What command is used to display filesystem information on /dev/sdb?

A

lsblk -f

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the purpose of the command ‘mount -o ro /mnt/part2’?

A

To mount /mnt/part2 as a READ-ONLY partition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What command would you issue to create a file named hiya.txt in /mnt/part2?

A

echo hiya > /mnt/part2/hiya.txt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What command should be used to manually unmount partition 2?

A

umount /mnt/part2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What command do you use to confirm the unmounting of partition 2?

A

lsblk -f

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What happens when you try to append to a file in a READ-ONLY partition?

A

An error message is displayed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Fill in the blank: To append ‘hiya’ to the hiya.txt file, you would use _______.

A

echo hiya&raquo_space; /mnt/part2/hiya.txt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What command checks if the device is mounted?

A

mount

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What command would you use to append ‘Its Monday afternoon!’ to hiya.txt?

A

echo Its Monday afternoon!&raquo_space; /mnt/part2/hiya.txt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What command would you use to check the contents of the hiya.txt file?

A

cat /mnt/part2/hiya.txt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

True or False: You can modify files on a READ-ONLY partition.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the expected outcome if you try to mount a partition that is already mounted?

A

An error message indicating the device is busy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly