Font size
WorksheetsLinux Command Line Quiz
Total questions: 14
Worksheet time: 10mins
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
cd /
cd ~
cd ..
cd /home
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.
ls lists all files, ls -l lists hidden files
ls lists all files, ls -l lists files with details
ls lists files with details, ls -l lists all files
ls lists files with details, ls -l lists hidden files
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:
mkdir secure_folder
newdir secure_folder
touch secure_folder
create secure_folder
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
cp important.txt /backup
mv important.txt backup/
cp important.txt backup/
mv important.txt /backup
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:
ls -r .log
search . -ext .log
grep .log
find . -name '*.log'
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:
procinfo apache2
ps -aux | grep apache2
top apache2
info apache2
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
It displays the status of running processes
It stops a running process
It starts a new process
It lists all processes
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:
cat confidential.doc
ls -l confidential.doc
ls -p confidential.doc
chmod -v confidential.doc
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:
To reduce file size
To speed up file operations
To prevent unauthorized access to files
To make the files look organized
Explain the difference between the apt-get update and apt-get upgrade commands.
apt-get update upgrades all packages, apt-get upgrade updates the package list
apt-get update updates the package list, apt-get upgrade upgrades all packages
apt-get update updates the package list, apt-get upgrade updates the package list
apt-get update upgrades all packages, apt-get upgrade upgrades the package list
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:
apt install netcat
apt-get install netcat
install netcat
get netcat
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:
It removes packages, dpkg -r package.deb
It installs packages, dpkg -i package.deb
It updates the package list, dpkg -i package.deb
It lists installed packages, dpkg -l
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:
displayusers
cat /etc/passwd
showusers
listusers
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:
adduser creates a new user, usermod modifies an existing user
adduser modifies an existing user, usermod creates a new user
adduser and usermod both create new users
adduser and usermod both modify existing users
