2026 QUESTION RESPONSE GUIDE
◉ what happens to a users files when a user account is deleted using
sudo userdel?. Answer: The files remain attached to the UID of the
user account that was deleted
◉ what is the purpose of the su command in Linux. Answer: to
switch to a different user profile
◉ which of the following best describes what the dmesg command
gives you. Answer: shows you the message buffer of the kernel
◉ provide the argument to ls that will recursively list a directory's
contents. Answer: -R or -recursive
◉ Which most frequently is used to connect a harddrive to a
motherboard. Answer: SATA
◉ Used to change permissions in linux. Answer: Chmod
◉ Which of the following switched would allow you to extract a
tar.gz file. Answer: -xvzf
,◉ which of the following is the proper command to archive
/Documents/Sales/Docs into a tar ball with name of archivedocs?.
Answer: Tar -czvf archiveddocs.tar.gz /documents/Sales/Docs
◉ Which of the following best describes the purpose of the /etc/skel
directory?. Answer: Allows for a default home directory when users
profile is first created
Allows new user profiles to be easily set up with the same defaults
◉ what are the default permissions for the /etc/skel. Answer:
drwxr-xr-x
◉ Which of the following distros would still be receiving security
updates. Answer: Ubuntu LTS(Long Term Service)
◉ which two special characters would you use to start a BASH script.
Answer: #!
◉ Which of the following commands would allow you to run the
script with its output going into a file with the name of
testoutput.txt. Answer: ./testscript.sh > testoutput.txt
, ◉ which of the following would be the output of the "free"
command. Answer: total used free shared buff/cache available(says
free)
◉ Type the command to bring up the manual for a command.
Answer: Man
◉ What would be a possible output of the following command
echo*.??. Answer: Customers.gz
echo(display line of text)
*(any # of characters)
.(Single Character)
?(Single Alphanumeric)
◉ What is the purpose of the PATH variable. Answer: It is used to
create a generic script that can be run across multiple machines
regardless of the different file paths
◉ Which distros are webservers on linux. Answer: NgineX
Apache
◉ which of the following would be the output of the last command.
Answer: wtmp begins Mon Jul 15 10:04