WGU C851 (Linux Foundations) Exam Prep
WGU C851 (LINUX FOUNDATIONS) EXAM PREP NEWEST
2026/2027 ACTUAL EXAM COMPLETE 80 QUESTIONS AND
CORRECT DETAILED ANSWERS (VERIFIED ANSWERS) |ALREADY
GRADED A+||BRAND NEW VERSION!!
Which command adds the new user tux and creates the user's home directory
with default configuration files?
A. defaultuser tux
B. useradd ""m tux
C. usercreate tux
D. useradd ""o default tux
E. passwd ""a tux - Correct Answer-B
What information is stored in /etc/passwd? (Choose three.)
A. The user's storage space limit
B. The numerical user ID
C. The username
D. The encrypted password
E. The user\s default shell - Correct Answer-BCE
Which of the following tar options handle compression? (Choose two.)
A. -bz
B. -z
1|Page
, WGU C851 (Linux Foundations) Exam Prep
C. -g
D. -j
E. -z2 - Correct Answer-BD
FILL BLANK -What keyword is used in a shell script to begin a loop? (Specify one
keyword only, without any additional information.) - Correct Answer-FOR
Which of the following commands creates an archive file work.tar from the
contents of the directory ./work/?
A. tar --new work.tar ./work/
B. tar -cf work.tar ./work/
C. tar ""create work.tgz ""content ./work/
D. tar work.tar < ./work/
E. tar work > work.tar - Correct Answer-B
Which of the following keys can be pressed to exit less?
A. l
B. x
C. e
D. q
E. ! - Correct Answer-D
2|Page
, WGU C851 (Linux Foundations) Exam Prep
The current directory contains the following file:-rwxr-xr-x 1 root root 859688 Feb
7 08:15 test.shGiven that the file is a valid shell script, how can this script be
executed? (Choose two.)
A. run test.sh
B. ${test.sh}
C. cmd ./test.sh
D. ./test.sh
E. bash test.sh - Correct Answer-DE
Which of the following commands sorts the output of the command export-logs?
A. export-logs < sort
B. export-logs > sort
C. export-logs & sort
D. export-logs | sort
E. export-logs <> sort - Correct Answer-B
A directory contains the following files:
a. txt
b. txt
c. cav
What would be the output of the following shell script?for file in *.txt
3|Page
WGU C851 (LINUX FOUNDATIONS) EXAM PREP NEWEST
2026/2027 ACTUAL EXAM COMPLETE 80 QUESTIONS AND
CORRECT DETAILED ANSWERS (VERIFIED ANSWERS) |ALREADY
GRADED A+||BRAND NEW VERSION!!
Which command adds the new user tux and creates the user's home directory
with default configuration files?
A. defaultuser tux
B. useradd ""m tux
C. usercreate tux
D. useradd ""o default tux
E. passwd ""a tux - Correct Answer-B
What information is stored in /etc/passwd? (Choose three.)
A. The user's storage space limit
B. The numerical user ID
C. The username
D. The encrypted password
E. The user\s default shell - Correct Answer-BCE
Which of the following tar options handle compression? (Choose two.)
A. -bz
B. -z
1|Page
, WGU C851 (Linux Foundations) Exam Prep
C. -g
D. -j
E. -z2 - Correct Answer-BD
FILL BLANK -What keyword is used in a shell script to begin a loop? (Specify one
keyword only, without any additional information.) - Correct Answer-FOR
Which of the following commands creates an archive file work.tar from the
contents of the directory ./work/?
A. tar --new work.tar ./work/
B. tar -cf work.tar ./work/
C. tar ""create work.tgz ""content ./work/
D. tar work.tar < ./work/
E. tar work > work.tar - Correct Answer-B
Which of the following keys can be pressed to exit less?
A. l
B. x
C. e
D. q
E. ! - Correct Answer-D
2|Page
, WGU C851 (Linux Foundations) Exam Prep
The current directory contains the following file:-rwxr-xr-x 1 root root 859688 Feb
7 08:15 test.shGiven that the file is a valid shell script, how can this script be
executed? (Choose two.)
A. run test.sh
B. ${test.sh}
C. cmd ./test.sh
D. ./test.sh
E. bash test.sh - Correct Answer-DE
Which of the following commands sorts the output of the command export-logs?
A. export-logs < sort
B. export-logs > sort
C. export-logs & sort
D. export-logs | sort
E. export-logs <> sort - Correct Answer-B
A directory contains the following files:
a. txt
b. txt
c. cav
What would be the output of the following shell script?for file in *.txt
3|Page