wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Linux Command Line Quiz

Total questions: 14

Worksheet time: 10mins

Name
Class
Date
1.

As a cybersecurity professional, you have been called in to investigate a suspected security breach on a Linux server within a corporate environment. During the initial analysis, you need to access the home directory of a user account that is believed to be compromised. As part of your investigation, choose the most secure and appropriate command to navigate to the home directory using the Linux terminal

a)

cd /

b)

cd ~

c)

cd ..

d)

cd /home

2.

You find yourself tasked with examining the contents of a suspicious directory on a Linux server. Your team is keen on understanding the intricacies of the files within and identifying any potential threats. To enhance your analysis, explain the difference between the 'ls' and 'ls -l' commands in the Linux terminal.

a)

ls lists all files, ls -l lists hidden files

b)

ls lists all files, ls -l lists files with details

c)

ls lists files with details, ls -l lists all files

d)

ls lists files with details, ls -l lists hidden files

3.

As a cybersecurity professional performing system hardening on a Linux server, you are tasked with improving the overall security posture by organizing and securing sensitive files. In the course of your work, you need to create a new directory named 'secure_folder' in the current location. Choose the correct command for creating this directory from the following options:

a)

mkdir secure_folder

b)

newdir secure_folder

c)

touch secure_folder

d)

create secure_folder

4.

As a specialist responsible for securing critical files on a corporate desktop, you encounter a situation where you must safeguard a file named 'important.txt' by creating a backup in a designated folder. Choose the correct command for copying this file to a folder named 'backup' from the following options

a)

cp important.txt /backup

b)

mv important.txt backup/

c)

cp important.txt backup/

d)

mv important.txt /backup

5.

You are cyber security analyst investigating a potential security incident on a Linux server, you need to identify and analyze log files scattered across the system and its subdirectories. To efficiently locate all files with a '.log' extension, choose the correct command from the following options:

a)

ls -r .log

b)

search . -ext .log

c)

grep .log

d)

find . -name '*.log'

6.

You are tasked with monitoring and securing a Linux server, you receive an alert indicating suspicious activity related to a process named 'apache2.' To gather more information about this running process, choose the correct command from the following options:

a)

procinfo apache2

b)

ps -aux | grep apache2

c)

top apache2

d)

info apache2

7.

As a cybersecurity analyst responsible for monitoring and maintaining the security of a server infrastructure, you encounter a situation where you need to understand and manage the processes running on a Linux server. Choose the correct explanation for the purpose of the 'ps' command from the following options

a)

It displays the status of running processes

b)

It stops a running process

c)

It starts a new process

d)

It lists all processes

8.

You are cybersecurity administrator responsible for managing access and permissions on a file server, you encounter a critical task: understanding and verifying the permissions of a sensitive file named 'confidential.doc.' To accomplish this, choose the correct command from the following options:

a)

cat confidential.doc

b)

ls -l confidential.doc

c)

ls -p confidential.doc

d)

chmod -v confidential.doc

9.

As the lead system administrator managing a Linux server in a dynamic multi-user environment within a corporate setting, you are tasked with explaining the significance of setting proper file permissions. This is crucial for maintaining the integrity and security of the server. Choose the most accurate explanation from the following options:

a)

To reduce file size

b)

To speed up file operations

c)

To prevent unauthorized access to files

d)

To make the files look organized

10.

Explain the difference between the apt-get update and apt-get upgrade commands.

a)

apt-get update upgrades all packages, apt-get upgrade updates the package list

b)

apt-get update updates the package list, apt-get upgrade upgrades all packages

c)

apt-get update updates the package list, apt-get upgrade updates the package list

d)

apt-get update upgrades all packages, apt-get upgrade upgrades the package list

11.

you are tasked with installing a new software package named 'netcat' to enhance network-related functionalities. Choose the correct command for installing the 'netcat' package using APT (Advanced Package Tool) from the following options:

a)

apt install netcat

b)

apt-get install netcat

c)

install netcat

d)

get netcat

12.

As an IT administrator responsible for managing the software deployment on a Debian-based server in a corporate environment, you encounter a situation where you need to install a critical package named 'security-tools.' To achieve this, you decide to utilize the 'dpkg' command. Choose the correct explanation and command from the following options:

a)

It removes packages, dpkg -r package.deb

b)

It installs packages, dpkg -i package.deb

c)

It updates the package list, dpkg -i package.deb

d)

It lists installed packages, dpkg -l

13.

You are the system administrator responsible for user management on a Linux server in a corporate environment, you need to retrieve a comprehensive list of all users to facilitate account management tasks. Choose the correct command for displaying this list from the following options:

a)

displayusers

b)

cat /etc/passwd

c)

showusers

d)

listusers

14.

As a cybersecurity administrator responsible for user account management on a Linux server within a corporate cybersecurity framework, you encounter a scenario where you need to establish and adjust user accounts to meet security policies. Choose the correct explanation regarding the purpose of the 'adduser' and 'usermod' commands from the following options:

a)

adduser creates a new user, usermod modifies an existing user

b)

adduser modifies an existing user, usermod creates a new user

c)

adduser and usermod both create new users

d)

adduser and usermod both modify existing users