Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

25W CST8305 GNU/Linux Server Administration Midterm

Total questions: 100

Worksheet time: 50mins

Name
Class
Date
1.

Which command is used to remove an active file system from the directory tree when it is no longer needed?

a)

dnf

b)

umount

c)

ps

d)

ping

e)

chmod

2.

Which command can terminate all instances of a named program at once?

a)

/boot

b)

userdel

c)

bg

d)

df

e)

killall

3.

Which command schedules repeated execution of tasks at predetermined intervals?

a)

date

b)

killall

c)

man

d)

crontab

e)

/etc/sudoers

4.

Which directory is a tmpfs location that is cleared upon system reboot?

a)

/dev/shm

b)

/boot

c)

/home

d)

/dev

e)

/etc

5.

Which program is primarily responsible for sorting and writing syslog events?

a)

chronyd

b)

logrotate

c)

systemctl

d)

rsyslogd

e)

journalctl

6.

Which command can update script file permissions so that it can be run as an executable?

a)

chmod

b)

find

c)

useradd

d)

chown

e)

kill

7.

Which directory is often used for placing or extracting files temporarily to avoid overwriting important data?

a)

/var/spool/anacron/

b)

/tmp

c)

/home

d)

/mnt

e)

/dev

8.

Which directory is commonly used to hold system log files that record events and service activity?

a)

/dev

b)

/tmp

c)

/boot

d)

/var/log

e)

/bin

9.

Which directory is often used as a temporary mount point for manually mounting a file system?

a)

/home

b)

/boot

c)

/bin

d)

/mnt

e)

/etc

10.

Which command displays processes holding files open, helping to identify why a file system cannot be unmounted?

a)

lsof

b)

jobs

c)

sort

d)

grep

e)

fg

11.

To ensure accurate time on a server, which service should be enabled so that the system clock remains synchronized with an external source?

a)

systemctl

b)

groupadd

c)

chronyd

d)

rsyslogd

e)

groupdel

12.

Which command can display multiple tasks associated with the current terminal session?

a)

jobs

b)

crontab

c)

/etc/shadow

d)

grep

e)

hostname

13.

Which command can be used to verify connectivity to a remote IPv4 host by applying a step-by-step approach for network testing?

a)

ping

b)

chown

c)

hostname

d)

date

e)

dig

14.

Which file typically holds authentication messages about security events?

a)

/etc/passwd

b)

/var/log/messages

c)

/var/log/secure

d)

/var/log/maillog

e)

/var/log/boot.log

15.

Which command is used to schedule recurring tasks for a local user?

a)

ping

b)

grep

c)

tar

d)

at

e)

crontab

16.

Which file lists domain name servers and is automatically updated by NetworkManager?

a)

/dev/null

b)

/etc/resolv.conf

c)

/etc/passwd

d)

/etc/fstab

e)

/etc/hosts

17.

Which command is best for viewing real-time systemd journal messages?

a)

journalctl

b)

chronyd

c)

logrotate

d)

hostnamectl

e)

systemctl

18.

Which program is typically used so that a user account cannot log in with an interactive shell?

a)

/sbin/nologin

b)

/dev/null

c)

/etc/hosts

d)

/var/log

e)

/etc/passwd

19.

Which file may hold custom domain name mappings?

a)

/usr/lib/systemd/system/

b)

/etc/anacrontab

c)

/home

d)

/etc/hosts

e)

/etc/ssh/ssh_config

20.

To systematically configure a server’s identity, which command enables you to view and modify the system’s hostname details?

a)

groupdel

b)

chronyd

c)

hostnamectl

d)

journalctl

e)

logrotate

21.

Which command could be used to examine open network connections?

a)

kill

b)

useradd

c)

df

d)

mkdir

e)

ss

22.

Which directory typically includes a sticky bit to prevent unauthorized file deletion by non-owners?

a)

/var/log/messages

b)

/home

c)

/etc/systemd/system/

d)

/tmp

e)

/usr/lib/systemd/system/

23.

Which command is used to schedule a single-run task for a future time?

a)

crontab

b)

bg

c)

ip

d)

chmod

e)

at

24.

Which file is often modified for storing local system name-to-IP mappings to avoid DNS lookups?

a)

/etc/hosts

b)

/var/spool/anacron/

c)

/dev/null

d)

/etc/profile.d/local-umask.sh

e)

/etc/passwd

25.

Which command updates the index that locate uses for file name searches?

a)

hostname

b)

cat

c)

find

d)

updatedb

e)

logger

26.

Which command is most suitable for sending a signal to a specific process by its PID?

a)

ping

b)

usermod

c)

cat

d)

/etc/yum.conf

e)

kill

27.

Which file typically holds user-specific shell initialization settings for each interactive shell session?

a)

/etc/fstab

b)

/var/log/messages

c)

/usr/lib/systemd/system/

d)

~/.bashrc

e)

/etc/ssh/ssh_config

28.

Which file is commonly placed on the first line of a script with a "#!" directive?

a)

/etc/fstab

b)

/dev/null

c)

/etc/passwd

d)

/bin/bash

e)

/dev/nvme0

29.

Which command allows you to search for a regular expression within a file’s contents or a stream of data?

a)

touch

b)

man

c)

ps

d)

grep

e)

userdel

30.

Which command reveals both the system’s uptime and its load average values?

a)

locate

b)

/etc/hosts

c)

uptime

d)

groupadd

e)

vnstat

31.

Which command is used to create a new group on the system?

a)

useradd

b)

groupadd

c)

groupdel

d)

usermod

e)

hostname

32.

Which command installs the latest updates for every package installed on the system?

a)

dnf group info

b)

dnf group mark install

c)

dnf update

d)

dnf repolist all

e)

dnf module provides

33.

Which file is commonly used to define how file systems should be mounted at system startup?

a)

/dev/null

b)

/etc/fstab

c)

/var/log

d)

/etc/rsyslog.conf

e)

/etc/hosts

34.

Which path corresponds to the first partition on the first detected SATA hard drive?

a)

/dev/sda1

b)

/dev/nvme0n1p1

c)

/dev/null

d)

/dev/shm

e)

/dev/sdb1

35.

Which file most likely contains entries pertaining to cron job execution?

a)

/var/log/messages

b)

/var/log/maillog

c)

/var/log/boot.log

d)

/var/log/cron

e)

/var/log/secure

36.

Which command can be used to display the current routing table?

a)

hostname

b)

grep

c)

netstat

d)

ip route

e)

dig

37.

Which directory typically contains default service unit files provided by the operating system?

a)

/dev/console

b)

/etc/cron.d/

c)

/etc/systemd/system/

d)

/var/spool/anacron/

e)

/usr/lib/systemd/system/

38.

Which command will test IPv6 connectivity to a remote host?

a)

ip

b)

ping

c)

echo

d)

hostnamectl

e)

ping6

39.

Which command reloads system manager configuration files?

a)

systemctl

b)

systemctl stop

c)

systemctl daemon-reload

d)

systemctl status

e)

systemctl start

40.

Which command updates only the kernel package to a newer version if available?

a)

dnf install

b)

dnf group list hidden

c)

dnf update kernel

d)

dnf group mark install

e)

dnf module info

41.

Which command searches the file system in real time for matching file names?

a)

cd

b)

df

c)

locate

d)

lsof

e)

find

42.

Which directory is frequently used to hold system-generated logs that can later be archived or transferred?

a)

/var/log

b)

/boot

c)

/home

d)

/etc/passwd

e)

/run/log

43.

Which utility automates rotating and compressing log files to prevent them from growing excessively?

a)

journalctl

b)

usermod

c)

logrotate

d)

systemctl

e)

groupadd

44.

Which command displays the user's pending one-time scheduled jobs awaiting execution?

a)

atq

b)

chown

c)

su

d)

ps

e)

/dev/null

45.

Which command is used to display both enabled and disabled repositories on the system?

a)

dnf repolist

b)

dnf repolist all

c)

dnf search all

d)

dnf list kernel

e)

dnf provides

46.

Which command displays system event messages collected by the system service manager?

a)

journalctl

b)

dnf

c)

crond

d)

sshd

e)

ping

47.

Which command is used to display text or variables from within a Bash script?

a)

cat

b)

grep

c)

sudo

d)

echo

e)

ping

48.

Which command is used to recursively set read, write, and execute permissions for the group on all files in a directory?

a)

cat

b)

ps

c)

grep

d)

chmod

e)

chgrp

49.

Which file is used to define the default umask for user accounts at login?

a)

/etc/login.defs

b)

/var/log/maillog

c)

/etc/hosts

d)

/etc/fstab

e)

/etc/profile.d/local-umask.sh

50.

Which command can list all active processes regardless of the controlling terminal?

a)

/var/log

b)

tail

c)

fg

d)

ps

e)

logger

51.

Which command is a stand-alone utility that compresses or decompresses one file without packaging multiple files together?

a)

/etc/fstab

b)

sftp

c)

bzip2

d)

rsync

e)

tar

52.

Which command lists and summarizes disk usage across all subdirectories?

a)

find

b)

mount

c)

grep

d)

du

e)

df

53.

Which command can expand a compressed .zip file back into its original contents?

a)

unzip

b)

dd

c)

tar

d)

cat

e)

sftp

54.

Which directory can store custom recurring jobs?

a)

/root

b)

/etc/cron.d

c)

/etc/fstab

d)

/mnt

e)

/etc/passwd

55.

Which command lists one-time tasks that have been queued for future execution?

a)

cat

b)

at

c)

fg

d)

atrm

e)

atq

56.

Which command reveals the location of an executable file within your current PATH?

a)

which

b)

at

c)

tar

d)

ps

e)

w

57.

Which command provides a secure way to transfer files interactively over an encrypted connection?

a)

/etc/hosts

b)

zip

c)

cat

d)

tar

e)

sftp

58.

Which daemon processes one-time tasks as they become due?

a)

atd

b)

sshd

c)

rsyslogd

d)

systemd

e)

crond

59.

Which command is used to update an existing user's shell or group membership?

a)

groupmod

b)

useradd

c)

groupdel

d)

usermod

e)

userdel

60.

Which file should be reviewed to see the cryptographically hashed password for a local user?

a)

/etc/hosts

b)

/etc/shadow

c)

/etc/fstab

d)

/etc/group

e)

/etc/passwd

61.

Which directory can temporarily hold systemd journal data in memory until permanent storage is used?

a)

/var/log

b)

/dev/shm

c)

/etc/login.defs

d)

/run/log/journal

e)

/etc/systemd/system/

62.

Which command runs as a background process to schedule recurring commands on the system?

a)

ps

b)

dnf

c)

crond

d)

systemctl

e)

tar

63.

Which command is used to search for packages that match a specified pattern in their names and summaries?

a)

dnf group mark install

b)

dnf search

c)

dnf group list hidden

d)

dnf remove

e)

cat

64.

Which command can be used to view and test DNS queries?

a)

ip link

b)

ps

c)

df

d)

traceroute

e)

dig

65.

Which file typically captures general system messages that could include errors from your script’s conditional logic?

a)

/var/log/messages

b)

/etc/resolv.conf

c)

/tmp

d)

/root

e)

/etc/hosts

66.

Which command is used to create a normal user account for day-to-day tasks on the system?

a)

groupadd

b)

groupdel

c)

userdel

d)

useradd

e)

usermod

67.

Which command resumes a suspended job so that it continues executing in the background?

a)

bg

b)

/home

c)

cron

d)

echo

e)

chmod

68.

Which command can be used to check the effective UID and GID of the currently logged-in user?

a)

id

b)

pwd

c)

du

d)

bg

e)

df

69.

Which command is the primary init daemon responsible for booting and managing services?

a)

systemctl

b)

atd

c)

ping

d)

netstat

e)

systemd

70.

Which command searches for files in real time based on name, permissions, size, or other criteria?

a)

find

b)

locate

c)

host

d)

du

e)

id

71.

Which command can display the contents of an archive to verify its files without extracting them?

a)

rsync

b)

tar

c)

/etc/hosts

d)

sftp

e)

zip

72.

Which command brings a background process to the current terminal so it can receive keyboard input?

a)

A) fg

b)

B) dig

c)

C) /etc/fstab

d)

D) ps

e)

E) find

73.

Which command is used to define the default file permissions for newly created files in the current shell?

a)

sudo

b)

bg

c)

tail

d)

umask

e)

umount

74.

Which command displays detailed file permissions, ownership, and other attributes in a directory listing?

a)

mkdir

b)

dnf

c)

ps

d)

rpm

e)

ls

75.

Which command can update only changed portions of files when synchronizing directories on different systems?

a)

rsync

b)

tar

c)

/var/log

d)

sftp

e)

bzip2

76.

Which directory often contains symbolic links that enable services for the multi-user environment?

a)

/etc/sudoers.d

b)

/etc/systemd/system/multi-user.target.wants/

c)

/etc/systemd/system/

d)

/run/log/journal

e)

/etc/profile.d/local-umask.sh

77.

Which command can be used to control service units so that, for example, your script’s service can be started or stopped?

a)

su

b)

cd

c)

usermod

d)

ip

e)

systemctl

78.

Which file is consulted first to map a hostname to an IPv4 for local name resolution?

a)

/etc/cron.d

b)

/etc/bashrc

c)

/etc/services

d)

/etc/resolv.conf

e)

/etc/hosts

79.

Which command is used to change the group ownership of a file or directory?

a)

bg

b)

crontab

c)

cat

d)

chgrp

e)

chmod

80.

Which command displays a basic list of all available and installed software groups on the system?

a)

dnf group list

b)

dnf provides

c)

dnf repolist all

d)

dnf module info

e)

dnf group info

81.

Which command is used to interactively view processes in real time and assess their resource usage?

a)

/etc/passwd

b)

jobs

c)

kill

d)

top

e)

useradd

82.

Which file must be adjusted to enable persistent journal storage?

a)

/var/log/maillog

b)

/etc/passwd

c)

/etc/systemd/system/journald.conf

d)

/etc/rsyslog.conf

e)

/var/log/secure

83.

Which command is used to determine which module stream a certain package belongs to?

a)

dnf group install

b)

dnf module provides

c)

/etc/fstab

d)

find

e)

dnf group list hidden

84.

Which directory can hold daily recurring scripts that help automate routine tasks?

a)

/etc/cron.daily/

b)

/etc/NetworkManager/system-connections/

c)

/etc/bashrc

d)

/etc/rsyslog.d

e)

/etc/shadow

85.

Which command is used to set a new password for an existing user?

a)

passwd

b)

groupdel

c)

usermod

d)

userdel

e)

anacron

86.

Which command reveals which package includes a particular file path on the system?

a)

dnf module list

b)

dnf search all

c)

dnf config-manager

d)

dnf provides

e)

dnf remove

87.

Which command provides detailed information about a package, such as its summary and license?

a)

dnf module provides

b)

dnf info

c)

dnf group install

d)

dnf list kernel

e)

dnf repolist all

88.

Which file can store environment settings for a user’s interactive login shell, including script path variables?

a)

/var/log/secure

b)

~/.bashrc

c)

/etc/startup.profile

d)

/etc/sudoers

e)

/etc/passwd

89.

Which command is used to download and install a package from configured repositories?

a)

dnf install

b)

dnf group mark install

c)

dnf search all

d)

dnf group info

e)

dnf update kernel

90.

Which file typically stores messages unrelated to authentication, mail, or scheduled tasks?

a)

/etc/passwd

b)

/var/log/secure

c)

/var/log/maillog

d)

/etc/shadow

e)

/var/log/messages

91.

Which directory is typically used to store personal shell scripts so they can be run more easily?

a)

~/bin/

b)

/mnt

c)

/etc/systemd/system/

d)

/usr/lib

e)

/var/log

92.

Which command removes an installed package from the system, also removing packages that depend on it?

a)

dnf repolist all

b)

dnf group list

c)

dnf module info

d)

dnf update

e)

dnf remove

93.

Which configuration file is commonly edited to define custom sorting rules?

a)

/etc/rsyslog.conf

b)

/etc/sudoers

c)

/etc/fstab

d)

/etc/hosts

e)

/etc/shadow

94.

Which directory is used for daily recurring tasks?

a)

/boot

b)

/etc/cron.daily/

c)

/etc/hosts

d)

/etc/crontab

e)

/var/log

95.

Which command changes both user and group ownership in one operation using the owner:group syntax?

a)

chmod

b)

kill

c)

cd

d)

usermod

e)

chown

96.

Which log file typically records messages related to scheduled tasks on a Red Hat Enterprise Linux system?

a)

/var/log/maillog

b)

/var/log/spooler

c)

/var/log/secure

d)

/var/log/cron

e)

/var/log/messages

97.

Which command is a daemon that continuously receives and processes log messages on the system?

a)

at

b)

kill

c)

rsyslogd

d)

systemctl

e)

anacron

98.

Which command is used to view the overall status of system services on the system?

a)

systemd

b)

df

c)

dig

d)

systemctl

e)

ping

99.

Which command removes a previously scheduled single-run job?

a)

usermod

b)

at

c)

atrm

d)

man

e)

ping

100.

Which command reveals a detailed overview of disks, partitions, and their mount points?

a)

atrm

b)

touch

c)

lsblk

d)

id

e)

updatedb