wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Linux Chapter 8 Review

Total questions: 38

Worksheet time: 19mins

Name
Class
Date
1.

What are two primary tasks that you can complete using the mount command?

a)

Formatting a disk drive and

view the files on a mounted device.

b)

Creating a new user and Combine multiple physical disks into a single logical storage unit.

c)

Checking system logs and create a virtual file system for applications.

d)

List all file systems that are currently mounted and allow a privileged user to mount a file system

2.

What type of RAID combines disk striping across multiple disks with parity for data redundancy?

a)
RAID 0
b)
RAID 1
c)
RAID 10
d)
RAID 5
3.

What is a requirement for all RAID configurations?

a)
At least one hard drive
b)

The amount of disk space must be of equal size.

c)
Only SSDs are required
d)
A minimum of four hard drives
4.

Which utility would you use to manage disk partitions in Linux?

a)
fdisk
b)
ls
c)
cp
d)
mv
5.

Which of the following is the maximum number of logical partitions allowed on an extended partition in Linux?

a)
32
b)
256
c)

unlimited

d)
64
6.

What does the /dev/sda3 device file name identify?

a)

The third partition on the first hard disk in a Linux system with the lowest ID number.

b)

The first partition on the second hard disk in a Linux system with the third lowest ID number.

c)
The entire hard disk in a Linux system.
d)

The partition on a USB drive.

7.

Which gdisk options changes a partition’s name?

a)
d
b)
n
c)
c
d)
m
8.

How many partitions does GPT allow on a storage device?

a)
128
b)
64
c)
256
d)
32
9.

Why should you carefully plan your partition changes before using parted ?

a)
To increase the speed of your system without any risks.
b)
To ensure that all partitions are automatically backed up.
c)
To make random changes without any planning.
d)

The parted command writes partition changes to disk immediately.

10.

After you create your logical volume, what should you do?

a)
Delete the logical volume.
b)

Create file systems on them and then mount them.

c)
Create a backup of the logical volume.
d)

Resize the logical volume.

11.

What utility can be used to manage and monitor software RAID devices?

a)
softraid
b)
mdadm
c)
diskraid
d)
raidutil
12.

How would you scan all logical volumes and display the results?

a)
lvscan
b)
lsblk
c)
pvscan
d)
vgscan
13.

Which file system provides journaling in Linux?

a)
ext4
b)
ntfs
c)
btrfs
d)

swap

14.

What command will deactivate a swap partition on the second partition on the first hard drive?

a)

swapoff /dev/sdb2

b)
swapoff /dev/sda1
c)

swapoff /dev/sda2

d)
swapoff /dev/sda3
15.

What command will mount all filesystems and make all settings active without taking the server down?

a)
mount -f
b)
mount -r
c)
mount -u
d)
mount -a
16.

Which file shows all the volumes that are currently mounted on the system?

a)

/etc/tab

b)
/dev/volumes
c)
/var/log/mounts
d)

/etc/mtab

17.

What two commands show all of the current mount points?

a)
lsblk, mount
b)
df -a, cat /etc/fstab
c)

mount, df

d)
mount -o remount, umount
18.

What option would you use with the debugfs command if a significant amount of corruption is detected on an ext3 file system?

a)
-r
b)

-c

c)
-f
d)
-s
19.

Which scheduler uses timestamps to push I/O requests that have reached their deadline to their highest priority?

a)
Round Robin Scheduler
b)
First-Come, First-Served Scheduler
c)
Shortest Job First Scheduler
d)
Deadline Scheduler
20.

Which command allows you to view the space available on all mounted file systems and presents it in a human readable form?

a)
ls -l
b)
du -h
c)
df -a
d)
df -h
21.

How would you open and edit a user quota in Linux?

a)
Use the command 'quotaedit username' to modify a user quota.
b)
Run 'setquota username' to change the user quota settings.
c)

Use the command 'edquota -u' to open and edit a user quota.

d)
Edit the '/etc/fstab' file to adjust user quotas.
22.

What file would you edit to add the mount options for the file system and enable quotas?

a)
/etc/fstab
b)
/etc/sysctl.conf
c)
/etc/hosts
d)
/etc/mtab
23.

What is the function of the chgrp command?

a)
The function of the chgrp command is to change the group ownership of files or directories.
b)
The chgrp command is used to copy files to a new location.
c)
The chgrp command is used to delete files or directories.
d)
The chgrp command is used to change file permissions.
24.

Which accounts can change file ownership in Linux?

a)

Only the file's group members

b)
Any user with sudo privileges
c)

The current owner of the file and the root user.

d)
Users with read access to the file
25.

What command will change ownership of a file or directory in Linux?

a)
chown
b)
rm
c)
mv
d)
chmod
26.

What command displays the file name, owner, group, and the access control list (ACL)?

a)

cat filename

b)

ls -g filename

c)

ls -a filename

d)

lgetfacl filename

27.

What command would you use to grant a user read, write, and execute permissions for file: myfile?

a)

chmod u=rw myfile

b)

chmod u=rwx myfile

c)

chmod a=rwx myfile

d)

chmod g=rx myfile

28.

What is the typical default umask value?

a)
022
b)
027
c)
075
d)
002
29.

What is the function of umask?

a)
Umask is used to encrypt files before saving them.
b)
Umask determines the maximum size of files created.
c)
The function of umask is to set default file permissions for newly created files and directories.
d)
Umask is a command for managing user accounts.
30.

What is the umask symbol that represents all of the mask symbols?

a)

g

b)

o

c)

u

d)

a

31.

What is the most common use of SUID?

a)
To restrict users from accessing certain files.
b)
To log user activity on the system.
c)
To prevent unauthorized program execution.
d)

To allow users to run programs with as the root user.

32.

What is the purpose of setting the sticky bit?

a)
To increase the speed of file access in shared directories.
b)
To allow all users to delete any file in a directory.
c)
To protect files in shared directories by restricting deletion to file owners.
d)
To enable file owners to modify permissions for all users.
33.

What is the function of the setfacl -x command?

a)
The setfacl -x command lists all ACL entries for a file or directory.
b)
The setfacl -x command modifies the permissions of a file or directory.
c)
The setfacl -x command adds an ACL entry to a file or directory.
d)
The setfacl -x command removes an ACL entry from a file or directory.
34.

What is displayed with the getfacl -d command?

a)
User and group ownership information.
b)
Permissions for files in a directory.
c)
File system mount options.
d)
Default Access Control Lists (ACLs) for a directory.
35.

What does the plus sign indicate at the end of the permissions list?

a)
It indicates additional ACLs are present.
b)
It means the permissions are set to read-only.
c)
It shows the file is owned by a group.
d)
It indicates the file is executable.
36.

What bzip2 command option will leave the compressed file unchanged?

a)
-d
b)
-f
c)
-v
d)
-k
37.

What type of backup copies all of the files that have been updated since the last full backup?

a)
Differential backup
b)
Incremental backup
c)
Mirror backup
d)
Full backup
38.

What is the drawback of using an SSD?

a)
Higher cost and limited write endurance compared to HDDs.
b)
Greater storage capacity at a lower price than HDDs.
c)
Faster data access speeds than HDDs.
d)
Lower power consumption than HDDs.