Objective Assessment
(2 Full Version Exams)
Linux Foundation
Pass on the first attempt.
This comprehensive resource includes:
✓ full 2 version of the Objective Assessment Exam
✓ Each with Actual Exam Questions
✓ Multiple-choice & Expert Verified Explanation
✓ designed to help you ace the exam.
✓ Anyone who needs clear, concise guidance to pass
,Table of Contents
WGU D281 OA Exam V1.........................................2
WGU D281 OA Exam V2.......................................25
WGU D281 OA Exam V1.
1. Which of the following commands will output a list of all the file
names under your home directory and all subdirectories with file
names ending with .pdf?
A. search .pdf
B. ls -name -R '*.pdf'
C. find /home/*.pdf
D. find ~ -name '*.pdf'
D. find ~ -name '*.pdf'
What is the set of pages that explain every command available on the
system?
A. Man pages
B. Help pages
C. Master Pages
D. Informational Pages
A. Man Pages
,Your current present working directory is /home/jason/documents/.
You just entered cd .. into the command line and then enter pwd. What
output do you receive?
A. /home/jason/documents/
B. /home/jason
C. /home
D. /home/jaosn/documents/..
B. /home/jason
Which of the following options must be used to remove a directory
and its subdirectories?
A. rmdir -r
B. rm -r
C. rmdir
D. rm -ll
B. rm -r
Which of the following is NOT a valid rule in naming a variable?
A. variable names must start with a letter
B. variable names must start with numbers
C. underscores are used instead of embedded spaces
D. Punctuation marks are not allowed
B. Variable names must start with numbers
What is the proper command to use to compress the file filename.txt
into the zip archive called myfile.zip?
A. zip myfile.zip filename.txt
B. unzip filename.txt myfile.zip
, C. zip filename.txt myfile.zip
D. unzip myfile.zip filename.txt
A. zip myfile.zip filename.txt
What statement is used to get input from the terminal when a shell
script is being run? A. input B. scan C. read D. in
C. read
Consider the following script:
#!/bin/bash
ip=`route -n | grep UG | tr -s " " | cut -f 2 -d " " `
echo "Checking to see if $ip is up..."
ping -c 5 $ip
Which of the following would be the first line displayed to the screen
when the script is executed by the user?
A. Pinging ipaddress...
B. Checking to see if ipaddress is up...
C. Checking ipaddress...
D. Pinging IP...
B. Checking to see if ipaddress is up...
Which option can be used with tail to print the last 10 lines of a file
and then keep printing any new lines that may be added
continuously?
A. -n
B. -f
C. -x
D. -a