Basics
Commands
Security
Networking
Troubleshooting
100

What is the command to check the current working directory?

what is "pwd"

100

Which command displays the last few lines of a file?

tail

100

How do you add a user to a group?

usermod -aG groupname username

100

What is the command to test connectivity to a remote host?

ping

100

Which command is used to reboot the system?

reboot

200

What file contains user account information in Linux?

/etc/passwd

200

How do you search for a string in a file?

grep

200

What file contains a list of users who can log in without a password?

/etc/passwd (or more appropriately, users listed in /etc/shadow with an empty password field)

200

Which command displays the current IP address of your system?

ifconfig or ip addr

200

What command can be used to kill a process by name?

pkill or kill

300

Which command would you use to change file permissions?

chmod

300

What command would you use to count the number of lines, words, and characters in a file?

wc

300

How do you create a new SSH key pair?

ssh-keygen

300

What does DNS stand for, and what is its purpose?

Domain Name System, used to translate domain names to IP addresses

300

How can you view running processes on your system?

ps or top

400

What is the purpose of the /etc/fstab file?

To define how disk partitions, devices, and remote filesystems are mounted

400

Which command can be used to find the differences between two files?

diff

400

What command checks for available updates and security patches?

yum check-update

400

Which command would you use to trace the path packets take to a destination?

traceroute

400

How can you remount a filesystem as read-only for troubleshooting?

mount -o remount,ro /mount_point

500

How can you view hidden files in a directory?

ls -a

500

How do you recursively copy an entire directory and its contents?

cp -r

500

Which command is used to modify the SELinux mode?

setenforce

500

Which protocol is used to securely transfer files over a network?

sftp or scp

500

What tool can you use to diagnose network connectivity issues?

ping or traceroute

M
e
n
u