wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

2nd Quiz

Total questions: 40

Worksheet time: 40mins

Name
Class
Date
1.

During a system administration workshop, Anika needs to gather detailed information about the kernel and architecture of the server she is working on. Which command should she use to obtain this information?

a)

hostname

b)

uname -a

c)

lscpu

d)

lsblk

2.

During a system performance analysis, Maya needs to check the CPU core count and thread details of her server. To do this, she would use:

a)

lsmem

b)

lspci

c)

lscpu

d)

dmidecode

3.

During a system diagnostic, Oliver needs to identify all the PCI devices connected to his computer, such as the GPU and NIC. Which command should he use to list them?

a)

lsusb

b)

lspci

c)

ip a

d)

lsblk

4.

During a system performance review, Zoe needs to troubleshoot memory issues and wants to view RAM block-level details. Which command should she use?

a)

free -h

b)

lsmem

c)

vmstat

d)

top

5.

Isla wants to share a sensitive document, but she needs to ensure that it is secure. Which command should she use to create a password-protected ZIP archive of her file?

a)

zip -p secure.zip file.txt

b)

zip -e secure.zip file.txt

c)

zip --encrypt secure.zip file.txt

d)

zip -c secure.zip file.txt

6.

Noah is trying to access the files he compressed into a .tar.xz archive for his project. To decompress the archive, he needs to use the correct command. What should he use?

a)

tar -xvf archive.tar.xz

b)

tar -xJvf archive.tar.xz

c)

unxz archive.tar.xz

d)

tar -zxvf archive.tar.xz

7.

Emma is working on a project that requires her to compress multiple directories into a single file for easier storage. She needs to use a tool that can compress directories into .7z format. Which tool should she use?

a)

gzip

b)

bzip2

c)

7z a

d)

rar

8.

During a network troubleshooting session, Arjun needs to identify which ports are currently active and the processes associated with them. To accomplish this, he decides to use:

a)

ping

b)

netstat -tulnp

c)

ip r

d)

curl

9.

Aiden is trying to diagnose latency issues in his network. He wants to find out how many hops his data takes to reach its destination. Which command should he use to trace the network hops?

a)

ip a

b)

traceroute

c)

ss

d)

nmcli

10.

Olivia wants to check her public IP address using the command line interface (CLI). What command should she run?

a)

ip r

b)

ifconfig

c)

curl https://ifconfig.me

d)

nslookup myip.opendns.com

11.

During a cybersecurity assessment, Benjamin needs to identify which services are running on a target server with the IP address 192.168.1.1. Which command should he use to scan for open ports/services on this target IP?

a)

dig

b)

nmap -sV 192.168.1.1

c)

netcat

d)

tcpdump

12.

While monitoring the performance of her computer, Mia noticed that some applications were running slowly. To identify CPU-hungry processes in real-time, she decided to use:

a)

free

b)

vmstat

c)

top

d)

iostat

13.

During a system performance analysis, Kai needs to monitor the server's I/O wait and swap usage. Which command should he use to get this information?

a)

htop

b)

ps aux

c)

vmstat 1 5

d)

uptime

14.

During a busy day at the office, Noah notices that a critical application is running slower than usual. To improve its performance, he decides to change the running process’s priority. To do this, he needs to use:

a)

kill

b)

renice

c)

chmod

d)

nice

15.

Liam is organizing his project files and needs to create a folder structure for his new project. Which command should he use to create nested directories in one step?

a)

mkdir -p dir1/dir2

b)

mkdir dir1; mkdir dir2

c)

touch dir1/dir2

d)

cp -r dir1 dir1/dir2

16.

Grace is trying to clean up her computer by removing a non-empty directory that contains several files and subdirectories. To safely delete this directory, she needs to use:

a)

rmdir

b)

rm -r

c)

rm -f

d)

unlink

17.

David is a software developer who wants to set the permissions for his script file named script.sh. He decides to use the command chmod 755 script.sh. What does this command set for the file?

a)

rwxr-xr-x

b)

rw-r--r--

c)

rwxrwxrwx

d)

r--------

18.

Daniel needs to find all .conf files in the /etc directory of his Linux system. To do this, he is considering the following commands:

a)

locate "*.conf"

b)

find /etc -name "*.conf"

c)

grep -r "*.conf" /etc

d)

which -a conf

19.

During a system maintenance check, James needs to find instances of "error" in all the .log files generated by the server. Which command should he use?

a)

find -name "*.log" | grep error

b)

grep error *.log

c)

locate error.log

d)

cat *.log | fgrep error

20.

Ava needs to securely access her company's server from a remote location. She knows that there is a specific protocol that uses port 22 for encrypted remote access. Which protocol should she use?

a)

FTP

b)

Telnet

c)

SSH

d)

RDP

21.

Oliver is trying to set up file sharing on his network using SMB/CIFS. He needs to know which port to configure for this service:

a)

21

b)

22

c)

3389

d)

445

22.

A server is unresponsive at Rohan's office. He needs to check if Apache is listening. Which command should he use?

a)

ip addr show

b)

ss -tuln | grep :80

c)

ping localhost

d)

curl http://localhost

23.

During a routine maintenance check, Benjamin needs to gather detailed information about the hardware components of his computer system. He wants to find out which command reveals BIOS-stored hardware details.

a)

lshw

b)

dmidecode

c)

lspci

d)

lsusb

24.

During a forensic investigation at a tech company, Anika needs to identify all connected USB devices to gather evidence. To accomplish this, she decides to use:

a)

lspci

b)

lsusb

c)

lsblk

d)

iwconfig

25.

Michael is running a resource-intensive application on his server, but he wants to ensure that other critical processes continue to run smoothly without interruption. To start the application with low CPU priority, he decides to use:

a)

renice -n 19

b)

nice -n 19

c)

chrt -f 1

d)

taskset -c 0

26.

Grace is working on her computer and needs to find out the name of a specific file located at /home/user/report.txt. Which command should she use to extract only the filename?

a)

dirname /home/user/report.txt

b)

basename /home/user/report.txt

c)

cut -d'/' -f4 report.txt

d)

ls /home/user/report.txt

27.

Avery needs to move file.txt to the /backup directory and rename it to archive.txt. To do this, she should run:

a)

cp file.txt /backup/archive.txt

b)

mv file.txt /backup/archive.txt

c)

rename file.txt archive.txt /backup

d)

rsync file.txt /backup/archive.txt

28.

While troubleshooting her internet connection, Lily finds that she can successfully ping 8.8.8.8, but when she tries to ping google.com, it fails. The issue is likely:

a)

Routing

b)

DNS

c)

Firewall

d)

NIC

29.

While troubleshooting a network issue, Lily needs to check DNS resolution for example.com. What command should she use?

a)

nslookup example.com

b)

ip route show

c)

netstat -s

d)

traceroute example.com

30.

Grace is setting up a new project on her server and wants to ensure that the default file permissions for the files created in this project are set to rw-r--r--. Which command should she use?

a)

chmod 644

b)

umask 022

c)

umask 077

d)

setfacl -m u::rw,g::r,o::r

31.

Noah is trying to save space on his computer by compressing files. He wants to know which format offers the highest compression ratio for his files.

a)

.zip

b)

.gz

c)

.xz

d)

.tar

32.

In a corporate network, the IT department has decided to enhance security by disabling Telnet due to concerns over plaintext credentials. To implement this change, they need to block a specific port. Which port should they block?

a)

21

b)

22

c)

23

d)

3389

33.

Avery is sending a package to Maya, and she wants to ensure that the package arrives safely and without any loss. Which protocol should she use to guarantee data delivery?

a)

UDP

b)

ICMP

c)

TCP

d)

HTTP

34.

In a Linux server, Ethan has set the permissions for a sensitive file to rw-r----- to control access. What does this permission setting equal?

a)

640

b)

750

c)

460

d)

660

35.

What is Linux?

a)
Linux is a type of computer hardware.
b)
Linux is a proprietary software application.
c)
Linux is a programming language.
d)
Linux is an open-source operating system kernel.
36.

2. Which command is used to list files and directories in Linux?

a)
dir
b)
list
c)
show
d)
ls
37.

3. Which command shows your current working directory?

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

4. Which command is used to create a new directory in Linux?

a)
mkdir
b)
cp
c)
touch
d)
rmdir
39.

5. Which command displays the contents of a file in linux?

a)
show
b)
cat
c)
display
d)
view
40.

6. Who is the root user in Linux?

a)
The root user is an application that manages user accounts.
b)
The root user is a system process that runs in the background.
c)
The root user in Linux is the superuser with full administrative privileges.
d)
The root user is a regular user with limited permissions.