Worksheets2nd Quiz
Total questions: 40
Worksheet time: 40mins
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?
hostname
uname -a
lscpu
lsblk
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:
lsmem
lspci
lscpu
dmidecode
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?
lsusb
lspci
ip a
lsblk
During a system performance review, Zoe needs to troubleshoot memory issues and wants to view RAM block-level details. Which command should she use?
free -h
lsmem
vmstat
top
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?
zip -p secure.zip file.txt
zip -e secure.zip file.txt
zip --encrypt secure.zip file.txt
zip -c secure.zip file.txt
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?
tar -xvf archive.tar.xz
tar -xJvf archive.tar.xz
unxz archive.tar.xz
tar -zxvf archive.tar.xz
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?
gzip
bzip2
7z a
rar
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:
ping
netstat -tulnp
ip r
curl
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?
ip a
traceroute
ss
nmcli
Olivia wants to check her public IP address using the command line interface (CLI). What command should she run?
ip r
ifconfig
curl https://ifconfig.me
nslookup myip.opendns.com
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?
dig
nmap -sV 192.168.1.1
netcat
tcpdump
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:
free
vmstat
top
iostat
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?
htop
ps aux
vmstat 1 5
uptime
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:
kill
renice
chmod
nice
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?
mkdir -p dir1/dir2
mkdir dir1; mkdir dir2
touch dir1/dir2
cp -r dir1 dir1/dir2
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:
rmdir
rm -r
rm -f
unlink
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?
rwxr-xr-x
rw-r--r--
rwxrwxrwx
r--------
Daniel needs to find all .conf files in the /etc directory of his Linux system. To do this, he is considering the following commands:
locate "*.conf"
find /etc -name "*.conf"
grep -r "*.conf" /etc
which -a conf
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?
find -name "*.log" | grep error
grep error *.log
locate error.log
cat *.log | fgrep error
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?
FTP
Telnet
SSH
RDP
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:
21
22
3389
445
A server is unresponsive at Rohan's office. He needs to check if Apache is listening. Which command should he use?
ip addr show
ss -tuln | grep :80
ping localhost
curl http://localhost
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.
lshw
dmidecode
lspci
lsusb
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:
lspci
lsusb
lsblk
iwconfig
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:
renice -n 19
nice -n 19
chrt -f 1
taskset -c 0
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?
dirname /home/user/report.txt
basename /home/user/report.txt
cut -d'/' -f4 report.txt
ls /home/user/report.txt
Avery needs to move file.txt to the /backup directory and rename it to archive.txt. To do this, she should run:
cp file.txt /backup/archive.txt
mv file.txt /backup/archive.txt
rename file.txt archive.txt /backup
rsync file.txt /backup/archive.txt
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:
Routing
DNS
Firewall
NIC
While troubleshooting a network issue, Lily needs to check DNS resolution for example.com. What command should she use?
nslookup example.com
ip route show
netstat -s
traceroute example.com
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?
chmod 644
umask 022
umask 077
setfacl -m u::rw,g::r,o::r
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.
.zip
.gz
.xz
.tar
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?
21
22
23
3389
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?
UDP
ICMP
TCP
HTTP
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?
640
750
460
660
What is Linux?
