010-160 Practice Questions
105 real 010-160 exam questions with expert-verified answers and explanations. Page 2 of 3.
- Question #51The Linux Operating System
Which criteria are useful when deciding which operating system to use? (Select THREE answers)
OS selection criterialicense costsapplication availabilityadministrator skills - Question #52The Power of the Command Line
Which of the following commands will create an archive file, named backup.tar, containing all the files from the directory /home?
tar commandarchive creationbackupcommand syntax - Question #53The Power of the Command Line
What does the exit status 0 indicate about a process?
exit statusprocess managementerror codesshell scripting - Question #54Finding Your Way on a Linux System
What command would you use to get comprehensive documentation about any command in Linux?
man pagesdocumentationhelp systemLinux commands - Question #55The Linux Community and a Career in Open Source
Which one of the following is true about Open Source software?
open source definitionsoftware licensingcommercial useopen source rights - Question #56The Linux Community and a Career in Open Source
Which of the following is a requirement of the GPL license but not the BSD license?
GPLBSD licensecopyleftlicense comparison - Question #57The Power of the Command Line
Why is the file data.txt empty after executing sort data.txt > data.txt?
shell redirectionoutput redirectionfile truncationsort command - Question #58The Power of the Command Line
What keyword is missing from the following segment of the shell script? for i in *; cat $i done
shell scriptingfor loopdo keywordbash syntax - Question #59The Power of the Command Line
Which of the following statements may be used to access the second command line argument to a script?
positional parameterscommand argumentsbash variablesshell scripting - Question #60The Power of the Command Line
Which of the following commands will output all of the lines that contain either the string Fred or fred? (Choose TWO correct answers.)
grepregexcase-insensitive searchcharacter classes - Question #61The Power of the Command Line
The output of the program date should be saved in the variable actdat. What is the correct statement?
command substitutionshell variablesbash syntaxbackticks - Question #62Finding Your Way on a Linux System
How can the current directory and its subdirectories be searched for the file named MyFile.xml?
find commandfile searchdirectory traversal - Question #63The Power of the Command Line
Which of the following commands will set the variable text to olaf is home? (Select TWO answers)
shell variablesquotingbash syntaxstring assignment - Question #64The Power of the Command Line
What is the output of the following command? for token in a b c; do echo -n $(token); done
for loopsbash scriptingcommand substitutionecho - Question #65Security and File Permissions
What are the three sets of permissions for a file?
file permissionsuser group otherspermission sets - Question #66Security and File Permissions
Which command display the list of groups to which a user belongs?
id commanduser groupsuser identity - Question #67The Linux Operating System
Which of the following DNS record types hold an IP address? (Choose two.)
DNS recordsA recordAAAA recordnetworking - Question #68The Linux Operating System
Which of the following values could be a process ID on Linux?
process IDPIDLinux processes - Question #69The Linux Operating System
Which of the following is a protocol used for automatic IP address configuration?
DHCPnetwork protocolsIP configuration - Question #70The Linux Operating System
Which of the following devices represents a hard disk partition?
device filesdisk partitions/dev directorystorage devices - Question #71The Linux Operating System
Which of the following statements regarding Linux hardware drivers is correct?
kernel moduleshardware driversLinux kernel - Question #72The Linux Operating System
What can be found in the /proc/ directory?
/proc filesystemprocess informationvirtual filesystem - Question #73The Linux Community and a Career in Open Source
A new server needs to be installed to host services for a period of several years. Throughout this time, the server should receive important security updates from its Linux distrib...
LTSLinux distributionslong-term supportRHEL - Question #74The Linux Operating System
Which of the following directories must be mounted with read and write access if it resides on its own dedicated file system?
filesystem hierarchy/var directorymount optionsread-write - Question #75Security and File Permissions
The ownership of the file doku.odt should be changed. The new owner is named tux. Which command accomplishes this change?
chown commandfile ownershipuser permissions - Question #76Security and File Permissions
What happens to a file residing outside the home directory when the file owner's account is deleted? (Choose two.)
file ownershipuser deletionUIDorphaned files - Question #77Security and File Permissions
Which statements about the directory /etc/skel are correct? (Choose two.)
/etc/skeluseraddhome directoryuser creation - Question #78Finding Your Way on a Linux System
What is true about links in a Linux file system?
symbolic linkshard linksfilesystem linkscross-filesystem - Question #79Security and File Permissions
Which files are the source of the information in the following output? (Choose two.) uid=1000 (bob) gid=1000 (bob) groups=1000 (bob), 10 (wheel), 150 (wireshark), 989 (docker), 100...
/etc/passwd/etc/groupuser informationid command - Question #80Security and File Permissions
Which of the following tasks can the command passwd accomplish? (Choose two.)
passwd commanduser managementaccount lockingpassword change - Question #81Security and File Permissions
What is true about the su command?
su commanduser switchingprivilege escalationshell - Question #82Finding Your Way on a Linux System
Most commands on Linux can display information on their usage. How can this information typically be displayed?
command help--help optioncommand syntaxdocumentation - Question #83Finding Your Way on a Linux System
Which of the following commands shows the absolute path to the current working directory?
pwdworking directoryabsolute pathnavigation - Question #84The Power of the Command Line
Which of the following commands output the content of the file Texts 2.txt? (Choose two.)
cat commandfilename quotingescape charactersspecial characters - Question #85Finding Your Way on a Linux System
Which command displays file names only and no additional information?
ls commanddirectory listingcommand optionsfile names - Question #86The Power of the Command Line
What is the purpose of the PATH environment variable?
PATH variableenvironment variablescommand executionshell environment - Question #87The Power of the Command Line
Which of the following commands sets the variable USERNAME to the value bob?
shell variablesvariable assignmentbash syntax - Question #88The Power of the Command Line
Which command copies the contents of the directory /etc/, including all sub-directories, to /root/?
cp commandrecursive copydirectory copyfile management - Question #89The Power of the Command Line
Which of the following commands puts the lines of the file data.csv into alphabetical order?
sort commandtext processingfile sorting - Question #90The Power of the Command Line
Which of the following examples shows the general structure of a for loop in a shell script?
for loopshell scriptingbash syntaxcontrol flow - Question #91The Power of the Command Line
Which operator in a regular expression matches the preceding character either zero or one time?
regular expressionsregex quantifierspattern matchinggrep - Question #92The Power of the Command Line
The file script.sh in the current directory contains the following content: #!/bin/bash echo $MYVAR The following commands are used to execute this script: MYVAR=value ./script.sh...
export commandenvironment variablesvariable scopeshell scripting - Question #93The Power of the Command Line
What is the return value of a shell script after successful execution?
exit codeshell scriptingreturn valuebash - Question #94The Power of the Command Line
Which of the following commands creates the ZIP archive poems.zip containing all files in the current directory whose names end in .txt?
zip commandfile compressionarchivingcommand syntax - Question #95The Power of the Command Line
Which of the following statements are true regarding a typical shell script? (Choose two.)
shell scriptsshebangexecutable permissionsscript structure - Question #96The Power of the Command Line
Which of the following commands extracts the contents of the compressed archive file1.tar.gz?
tar commandarchive extractiongzipcommand options - Question #97The Power of the Command Line
Which of the following commands finds all lines in the file operating-systems.txt which contain the term linux, regardless of the case?
grep commandcase insensitive searchtext searchcommand options - Question #98The Linux Operating System
Which of the following programs are web servers? (Choose two.)
web serversApache HTTPDNGINXserver software - Question #99The Linux Operating System
Which of the following Linux Distributions is derived from Red Hat Enterprise Linux?
Linux distributionsCentOSRed HatRHEL - Question #100The Linux Community and a Career in Open Source
Which of the following statements is true about Free Software?
free softwareopen sourcesoftware freedomGPL