Linux Module 5 : Interactive Quiz Flashcards

1
Q

Which of the following commands can be used to create partitions on either MBR or GPT hard disk?

A

Parted

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

After a partition on a hard disk drive formatted with a filesystem, all partitions on that hard disk drive must use the same filesystem. True or False?

A

False

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

You want to see the filesystems that are presently in use on the system. What command could you use?

A

cat /etc/mtab

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

Jim has just purchased two new SCSI hard disk drives and a controller card for them. He properly installs the hardware in his machine. Before he can use them for data storage and retrieval, what must he do?

A

Mount any partitions created on the two hard drives such that they are accessible by the operating system.

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

Given the following output from /etc/fstab, which filesystems will be automatically checked on boot by the fsck command?

/dev/sda1 / ext4 defaults 1 1

none /dev/pts devpts gid=5,mode= 620 1 0

none /proc proc defaults 0 1

none /dev/shm tmpfs defaults 1 0

/dev/sdc2 swap swap defaults 0 1

/dev/dvd /media/dvd iso 9660 noauto,ro 0 0

/dev/fd0 /media/floppy auto noauto 0 0

A

/, /dev/pts and /dev/shm

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

A user monuts a device to a mount point directory and realizes afterward there are files previously found within the mount point directory that are needed. What should this user do?

A

Unmount the device from the directory.

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

Which command is used to display the amount of free space that exists on a filesystem?

A

df

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

What must you do to successfully run the fsck command on a filesysstem?

A

Unmout the filesystem.

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

Character devices typically transfer data more quickly than block devices. True of False?

A

False

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

What does the du /var command do?

A

displays the amount of free space in the /var directory

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

What does the command dumpe2fs -h do?

A

Displays the number of inodes used and available in an ext2 filesystem

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

The first floppy drive on the system is not responding. You enter the file /dev/fd0 command and receive the following output. What is the problem?

[root@server1 root]# file /dev/fd0

/dev/fd0: ASCII text

[root@server1 root]#

A

The device file has become corrupt

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

Which of the following statements are true?

A

Quotas can limit both user space and the number of files a user can own.

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

A device file :

A

displays a major and minor number in place of a file size

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

Which of the following statements regarding LVM structure is correct?

A

VGs are compromised of one of more PVs

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

The lvextend command can be used add additional unused space within a volume group to an existing logical volume. True or False?

A

True

17
Q

You plug a USB flash memory drive into a system that has two SATA hard disks. What will the partition on this USB flash memory drive be recognized as to the Linux system?

A

/dev/sdc1

18
Q

Which command mounts all existing filesystems in /etc/fstab?

A

mount -a

19
Q

A user runs the fsck command with the -a option on a filesystem that is showing signs of corruption. How would that user locate any files the system was unable to repair?

A

Mount the filesystem and check the lost+found directory underneath the mount point.

20
Q

Which command is used to format a partition on a hard disk drive with the ext4 filesystem?

A

e2mkfs -t ext4 device