wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Linux 25-26 Final Exam

Total questions: 66

Worksheet time: 33mins

Name
Class
Date
1.

Which file format is known for its human-readable syntax, making it suitable for defining and organizing configurations in a clear and concise manner in Infrastructure as Code (IaC)?

a)

XML (eXtensible Markup Language)

b)

JSON (JavaScript Object Notation)

c)

YAML (YAML Ain't Markup Language)

d)

CSV (Comma-Separated Values)

2.

SaltStack distinguishes itself with powerful remote execution capabilities. What language is used for its configuration files?

a)

YAML

b)

JSON

c)

Ruby

d)

Python

3.

What does "deploying a container" involve?

a)

Halting the processes of a container

b)

Launching container processes based on existing images

c)

Exposing specific ports within a container

d)

Creating and launching instances of a container based on existing container images

4.

What directory in Linux Contains files that change while the system is being used, such as log files and cache data?

a)
/tmp
b)
/etc
c)
/home
d)
/var
5.

Where are essential executable files for the system located?

a)

/lib

b)

/bin

c)

/usr

d)

/sbin

6.

9. The /media directory serves as:

a)

a location for temporary files

b)

a mount point for removable media

c)

a directory for user documents

d)

a system configuration directory

7.

What Linux command will display your current directory?

a)
ls
b)
cd
c)
mkdir
d)
pwd
8.

Which option displays all files and directories, including hidden ones, using the ls command?

a)

-a

b)

-l

c)

-R

d)

-al

9.

What command is used to create a new file in Linux?

a)

touch

b)

cat

c)

mkdir

d)

cp

10.

How is the cp command used to copy a directory and its contents?

a)

cp -dR source_directory destination_directory

b)

cp source_directory -R destination_directory

c)

cp source_directory destination_directory -R

d)

cp -r source_directory destination_directory

11.

What does the | (Pipe) command do in shell scripting?

a)

Connects the output of one command as the input to another command.

b)

Executes the command following it ONLY IF the preceding command fails.

c)

Redirects standard output to a file.

d)

Appends the standard output to the end of a file.

12.

What does the > (Output Redirection) command do in shell scripting?

a)

Redirects the standard output to a file, overwriting it if it exists.

b)

Appends the standard output to the end of a file.

c)

Redirects the input from a file to a command.

d)

Combines standard output and standard error to a specified file.

13.

What is nano?

a)

An advanced text editor

b)

A programming language

c)

A simple text editor

d)

A system administration tool

14.

What is a notable characteristic of vi(m)?

a)

It requires mastering keyboard commands

b)

It has a graphical user interface

c)

It supports mouse interactions

d)

It is primarily used for word processing

15.

Which tool is useful for searching patterns within text files and supports regular expressions?

a)

wc

b)

cut

c)

grep

d)

tr

16.

What does the tail command do?

a)

Translates or deletes characters in a stream of data

b)

Displays the last few lines of a file

c)

Counts lines, words, and characters in a file or input stream

d)

Displays the first few lines of a file

17.

What is the drawback of a Full Backup?

a)

It takes less time

b)

It requires less storage space

c)

It is time-consuming

d)

It only copies modified data

18.

What does a Differential Backup back up?

a)

Everything on the system

b)

Only modified data since the last full backup

c)

Only modified data since the last incremental backup

d)

Only system configurations

19.

Which of the following is an example of metadata for a .mp3 file?

a)

File size

b)

Compression algorithm

c)

Color profile

d)

GPS coordinates

20.

What is the primary function of the find command?

a)

Transforming text streams

b)

Searching for patterns within text files

c)

Extracting specific sections from each line

d)

Searching files and directories in a directory hierarchy

21.

Which partition table is more modern and versatile, supporting larger capacities and better data integrity?

a)

Master Boot Record (MBR)

b)

Filesystem in Userspace (FUSE)

c)

Redundant Array of Independent Disks (RAID)

d)

GUID Partition Table (GPT)

22.

Which command is used to list all Universal Serial Bus (USB) devices connected to the system?

a)

lspci

b)

dmidecode

c)

lsusb

d)

mkfs

23.

What utility is used to create, modify, or delete partitions on a storage drive in Linux?

a)

parted

b)

partprobe

c)

mkfs

d)

fdisk

24.

Which command is used to update the kernel with changes in the partition table?

a)

partprobe

b)

mkfs

c)

select

d)

resizepart

25.

Which command in Linux is used to format a partition with a specific file system?

a)
partition -f
b)
format
c)
diskutil
d)
mkfs
26.

What is a mount point in Linux?

a)

A physical storage device

b)

A logical connection between a directory and a filesystem

c)

An entry in /var/log/messages

d)

A file in the /etc/systemd/system directory

27.

Which command is used to grow an XFS file system, specifying a new size for the mount point?

a)

xfs_info

b)

xfs_growfs

c)

xfs_expand

d)

xfs_resize

28.

Where can mount parameters for a device be found in Linux?

a)

/var/log/messages

b)

/etc/systemd/system directory

c)

/etc/fstab

d)

/etc/mount

29.

What tool is used to grow the EXT4 filesystem?

a)
resize2fs
b)

mkfs

c)

e2fsck

d)

e2image

30.

What could be a consequence of running out of storage space on a storage device?

a)

High latency.

b)

I/O wait.

c)

Data loss, application crashes, or system instability.

d)

Slow data transfers.

31.

What are inodes in the context of storage?

a)

The time it takes for a storage system to respond to a request.

b)

Data structures that track files and directories.

c)

The number of read and write operations a storage device can handle per second.

d)

The limited data transfer rate between the storage system and requesting components.

32.

Which RAID Version involves mirroring 2 drives for redundancy?

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

True or False? A deleted file in Linux still exists on the storage device.

a)

True

b)

False

34.

Which firmware interface is the modern replacement for BIOS?

a)

GRUB2

b)

UEFI

c)

mkinitrd

d)

Dracut

35.

Which command installs the GRUB2 bootloader to the system's boot sector or EFI system partition?

a)

grub2-mkconfig

b)

grub2-update

c)

grub2-install

d)

mkinitrd

36.

What does PXE stand for?

a)

Power-On Self-Test

b)

Preboot eXecution Environment

c)

Portable X Environment

d)

Postboot eXecution Engine

37.

What is a zombie process, and how can it affect system performance?

a)

A process that consumes an excessive amount of system resources, causing performance degradation.

b)

A process that has completed execution but still has an entry in the process table, consuming minimal resources.

c)

A process waiting for I/O operations to complete, leading to system slowdown.

d)

A process that is ready to run, indicating a high demand for CPU time.

38.

Which package manager is used in Debian-based Linux distributions such as Debian, Ubuntu, and Kali?

a)

YUM

b)

APT

c)

DNF

d)

ZYpp

39.

What is the low-level package management tool used primarily in Red Hat-based distributions for installing, querying, and managing individual RPM packages?

a)

DNF

b)

APT

c)

RPM

d)

dpkg

40.

Which component of the OS is responsible for managing hardware resources and providing essential system services?

a)

Package manager

b)

Kernel

c)

Runtime

d)

Snap package

41.

Which protocol is primarily used to securely access a remote computer over a network?

a)

SSH (Secure Shell)

b)

FTP (File Transfer Protocol)

c)

HTTP (Hypertext Transfer Protocol)

d)

SMTP (Simple Mail Transfer Protocol)

42.

Which command-line utility allows for the configuration of a system clock and its settings in Linux?

a)

sysctl

b)

timedatectl

c)

localectl

d)

chronyctl

43.

Where does the make install command typically install the software by default?

a)

/usr/bin

b)

/usr/local/bin

c)

/opt/bin

d)

/bin

44.

Which command is used for generating secure key pairs in SSH?

a)

ssh-copy-id

b)

ssh-add

c)

ssh-keygen

d)

ssh-config

45.

What is the command to update repositories in Ubuntu Linux distributions?

a)
apt refresh
b)
sudo apt update
c)
sudo update-apt
d)
apt-get upgrade
46.

Which systemctl command is used to restart a service?

a)

systemctl start

b)

systemctl enable

c)

systemctl restart

d)

systemctl status

47.

What is cron used for in Unix-like operating systems?

a)

Enabling and disabling services

b)

Scheduling recurring tasks at fixed times, dates, or intervals

c)

Managing system stability

d)

Interacting with crontab files

48.

Which file contains configuration information for the Domain Name System (DNS) resolver, specifying DNS servers to be used and other resolver settings?

a)

/etc/systemD.conf

b)

/etc/hosts

c)

/etc/nsswitch.conf

d)

/etc/resolv.conf

49.

Which command is used in Linux systems to copy files between servers securely and uses the same authentication and security as SSH?

a)

SFTP

b)

rsync

c)

netcat

d)

scp

50.

What is the primary purpose of the Nmap tool?

a)

Scanning remote systems, identifying open ports, and detecting services.

b)

Testing SSL/TLS connections.

c)

Troubleshooting interface errors.

d)

Allocating bandwidth based on organizational priorities.

51.

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

a)

sudo useradd

b)

sudo groupadd

c)

sudo userdel

d)

sudo groupdel

52.

What command is used to check if a user is currently logged in?

a)

id

b)

who

c)

uname

d)

w

53.

Which command is used to set a password for a user account in Linux?

a)

sudo passwd -u username

b)

sudo userpasswd username

c)

sudo passset username

d)

sudo usermod -p password username

54.

Where is account information stored for each user in Linux, including the username, user ID, group ID, and home directory?

a)

/etc/profile

b)

/etc/passwd

c)

/etc/shadow

d)

/etc/skel

55.

Which file contains securely stored credential information, including salted and hashed passwords?

a)

/etc/profile

b)

/etc/passwd

c)

/etc/shadow

d)

/etc/skel

56.

Which command allows a user to switch to a different user and execute a command as that user?

a)

sudo

b)

su -

c)

pkexec

d)

visudo

57.

What is the primary purpose of Single Sign-On (SSO) authentication?

a)

Requiring users to provide multiple forms of identification

b)

Centralizing user authentication

c)

Customizing authentication processes

d)

Streamlining user access to multiple applications without re-entering credentials

58.

What is the primary purpose of Secure Boot in UEFI firmware?

a)

Improving boot times

b)

Preventing unauthorized access attempts

c)

Loading only immutable and signed software

d)

Enforcing password strength

59.

What command is used to view the assigned rights of files and directories in Linux?

a)

showpermissions

b)

accesscontrol

c)

ls -l

d)

chmod

60.

What is the correct order of the permissions triplet in the octal format for a file in Linux?

a)

Group, Owner, Other

b)

Other, Group, Owner

c)

Owner, Group, Other

d)

Other, Owner, Group

61.

Which command is used to create a new directory?

a)

createdir

b)

makedir

c)

newdir

d)

mkdir

62.

What does the 'cd' command do?

a)

Delete directory.

b)

Copy directory.

c)

Create directory.

d)

Change directory.

63.

Which command is used to remove files in Linux?

a)

delete

b)

erase

c)

rm

d)

remove

64.

Which command is used to change the owner of a file?

a)

chown

b)

useradd

c)

usermod

d)

chmod

65.

What does the 'tar' command do?

a)

Compresses files.

b)

Deletes files.

c)

Creates and extracts archive files.

d)

Moves files.

66.

Which command is used to display the current working directory?

a)

cd

b)

ls

c)

dir

d)

pwd