LINUX ESSENTIALS (01)
Single character that will allow you to exit the less program in the terminal - answer-q
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
Which of the following does Red Hat use for its package management - answer-RPM
Which of the following is used for vector graphics - answer-inkscape
Which of the following would allow you to remove the directory assuming it was empty -
answer-rmdir Docs19
which of the following would be a proper partition name on a drive - answer-/dev/sdc4
(has to be a single letter drive listed after sd)
which are characteristics of free software - answer-source code must remain freely
available to users
software allows users to access and change the source code to fit their needs
What is a linux distro - answer-Different versions of the linux kernel modified to fit more
specific functions
What is the single word that indicates the beginning of a loop statement in a bash script
- answer-while
What is the default UID value of the root user - answer-0
type the single character that would allow you to split lines in a bash shell script -
answer-\
how would you add to the PATH variable - answer-edit the/etc/environment file with a
text editor
Which of the following are decedents of RedHat - answer-CentOS