wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Linux Quiz

Total questions: 50

Worksheet time: 38mins

Name
Class
Date
1.

Which interpreter executes commands typed as strings?

a)

Shell

b)

Prompt

c)

Command

d)

Option

2.

Which visual cue indicates an interactive shell is waiting for user input?

a)

Shell

b)

Prompt

c)

Command

d)

Option

3.

What is the name of a program to run?

a)

Prompt

b)

Command

c)

Option

d)

Argument

4.

Which part of the command line adjusts the behavior of a command?

a)

Option

b)

Argument

c)

Physical console

d)

Command

5.

Which part of the command line specifies the target that the command should operate on?

a)

Virtual console

b)

Terminal

c)

Option

d)

Argument

6.

How do you re-execute a recent command by matching the command name?

a)

!string

b)

!number

c)

Tab

d)

Ctrl+z

7.

Which shortcut is used to complete commands, filenames, and options?

a)

Tab

b)

Shift

c)

Ctrl

d)

Esc

8.

Which directory contains dynamic configuration data such as FTP and websites?

a)

/usr

b)

/etc

c)

/var

d)

/root

9.

Where are regular user commands and utilities located?

a)

/usr/bin

b)

/usr/sbin

c)

/etc

d)

/usr

10.

Where are system administration binaries for root stored?

a)

/usr/bin

b)

/usr/sbin

c)

/etc

d)

/usr

11.

Where are temporary files stored?

a)

/var

b)

/usr/bin

c)

/tmp

d)

/etc

12.

Which directory contains dynamic, non-persistent application runtime data?

a)

/tmp

b)

/var

c)

/run

d)

/root

13.

Where are installed software programs and libraries stored?

a)

/usr

b)

/usr/bin

c)

/usr/sbin

d)

/run

14.

Which command returns to the previous working directory?

a)

cd -

b)

cd ../..

c)

cd bin

d)

cd ..

15.

Which command moves up two levels from the current directory?

a)

cd ../..

b)

cd bin

c)

cd -

d)

cd

16.

Which command lists the current location in long format, including hidden files?

a)

ls -al

b)

ls -l

c)

ls -l ~

d)

ls -al ~

17.

Which command lists only filenames that contain the letter 'b'?

a)

b

b)

b*

c)

[!b]*

d)

"b"

18.

Which command sends output to a file and errors to a different file?

a)

2>/dev/null

b)

file 2> /dev/null

c)

&>file

d)

file 2>file2

19.

Which command sends output and errors to the same new, empty file?

a)

&>file

b)

&>/dev/null

c)

| tee file

d)

file 2>&1

20.

Which command sends output and errors to the same file while preserving existing content?

a)

| tee file

b)

2>/dev/null

c)

file 2>&1

d)

&>/dev/null

21.

Which file can be modified by the user betty?

a)

rfile1

b)

rfile2

c)

lfile1

d)

lfile2

22.

Which file logs messages related to system startup?

a)

/var/log/secure

b)

/var/log/cron

c)

/var/log/boot.log

d)

/var/log/secure

23.

What does the following image indicate?

a)

An IP address cannot be a network address

b)

This configuration is valid

c)

The gateway is not on the same subnet

d)

An invalid IPv4 address

24.

What does the following image indicate?

a)

Name resolution is not configured

b)

This configuration is valid

c)

The gateway is not on the same subnet

d)

An invalid IPv4 address

25.

Which processor type is required for a specific package?

a)

Changelog

b)

Version

c)

Architecture

d)

Repository

26.

What is a collection of RPM packages and package groups called?

a)

Version

b)

Release

c)

Changelog

d)

Repository

27.

Which method verifies the source and integrity of a package?

a)

GPG signature

b)

Repository

c)

Changelog

d)

Architecture

28.

Which command gracefully stops a virtual machine?

a)

destroy

b)

shutdown

c)

reboot

d)

undefine

29.

Which system provides KVM support on a single machine?

a)

Red Hat Enterprise Linux

b)

Red Hat Enterprise Virtualization

c)

RHEL OpenStack Platform

d)

RHEV-M

30.

Which system provides virtualized redundancy across multiple machines?

a)

RHEL OpenStack Platform

b)

Red Hat Enterprise Linux

c)

Red Hat Enterprise Virtualization

d)

OpenStack in the public cloud

31.

Which system provides private cloud virtualization across multiple machines?

a)

RHEV-M

b)

RHEL OpenStack Platform

c)

virt-manager

d)

CloudForms

32.

Which platform provides public cloud virtualization?

a)

CloudForms

b)

virt-manager

c)

OpenStack in the public cloud

d)

RHEL OpenStack Platform

33.

Which management utility is used for standalone KVM hosts?

a)

virt-manager

b)

Red Hat Enterprise Linux

c)

RHEV-M

d)

CloudForms

34.

Which management utility is used for multiple host virtualization platforms?

a)

RHEV-M

b)

RHEL OpenStack Platform

c)

Red Hat Enterprise Virtualization

d)

OpenStack in the public cloud

35.

Which management utility integrates all virtualization and cloud platforms?

a)

Red Hat Enterprise Linux

b)

OpenStack in the public cloud

c)

CloudForms

d)

virt-manager

36.

Which command displays the list of users currently on the system?

a)

who

b)

w

c)

id

d)

users

37.

Which command shows system information, including the kernel version?

a)

uname -a

b)

systemctl status

c)

lscpu

d)

uptime

38.

Which command displays real-time memory usage?

a)

free -h

b)

top

c)

vmstat

d)

df -h

39.

Which command changes the current user's password?

a)

passwd

b)

usermod

c)

chage

d)

passwd -e

40.

Which command searches for a file by name within a specific directory?

a)

find /home -name "file.txt"

b)

locate file.txt

c)

grep file.txt

d)

whereis file.txt

41.

Which command safely shuts down the system?

a)

halt

b)

shutdown -h now

c)

poweroff

d)

reboot

42.

Which command lists the ports currently in use by services?

a)

netstat -tulnp

b)

ip a

c)

ss -lt

d)

lsof -i

43.

Which command displays the list of groups in the system?

a)

groups

b)

id

c)

whoami

d)

cat /etc/group

44.

Which command modifies file permissions so that only the owner can read it?

a)

chmod 400 file.txt

b)

chown user file.txt

c)

chmod 600 file.txt

d)

chgrp users file.txt

45.

Which command prints a file's contents without opening an editor?

a)

cat file.txt

b)

nano file.txt

c)

echo file.txt

d)

vi file.txt

46.

Which command lists all active services?

a)

systemctl list-units --type=service

b)

service --status-all

c)

chkconfig --list

d)

ps aux

47.

Which command creates a hard link to a file?

a)

ln file1 file2

b)

ln -s file1 file2

c)

cp file1 file2

d)

mv file1 file2

48.

Which command lists all installed packages?

a)

rpm -qa

b)

yum list installed

c)

dpkg --list

d)

apt list --installed

49.

Which command checks network connectivity to an IP or domain?

a)

ping example.com

b)

nslookup example.com

c)

traceroute example.com

d)

dig example.com

50.

Which command displays the list of disks and partitions?

a)

lsblk

b)

df -h

c)

fdisk -l

d)

du -sh