Foundations OA
D281 Linux Foundations OA and Pre-
assessment Practice Test Bank with a
Review of 200 Targeted Questions and
Answers/ WGU D281 LPI Linux Essential
Objective Assessment Practice Test Bank
If you wanted to disable a second network interface in Linux, what command would you enter at the shell?
ifdown eth0
ifdown eth1
ifconfig disable eth1
P 1
, • D281 Linux 09/07/2026
Foundations OA
ifdown - Correct Answer :ifdown eth1
You have been editing a configuration file using vi. You realize that you've made many mistakes and need to quit
without saving the changes so that you can start over. Which command will allow you to do this?
:q
:q!
:exit
:s - Correct Answer ::q! ("colon Q Bang!")
What directory would the ~ character represent?
Another user's home directory.
The home directory of our currently logged in user.
Take us to the home directory of the root user.
The /var directory. - Correct Answer :The home directory of our currently logged in user.
What is the default shell for most Linux distributions?
csh
bash
P 2
, • D281 Linux 09/07/2026
Foundations OA
sh
zsh - Correct Answer :bash
You need to troubleshoot a hardware issue. Which command would let you view the kernel ring buffer to see
what hardware was just added?
cat /var/log/boot.log
tail lastlog
dmsg | less
head /var/log/messages - Correct Answer :dmsg | less (driver messages) "dmsg pipe less"
Which of the following sections give a brief review of the syntax used for a particular command or utility within a
man page?
REVIEW
SYNOPSIS
SYNTAX
DESCRIPTION - Correct Answer :SYNOPSIS
In which directory could you add files so that a newly created user will automatically have them when they first
log in?
P 3
, • D281 Linux 09/07/2026
Foundations OA
/etc/skel
/etc/profile.d
/etc/default
/etc/.skel - Correct Answer :/etc/skel (correct?)
Which of the following provides binary files containing prewritten code elements or interfaces that programmers
can call when writing Linux programs?
Libraries
Bash shell profiles
Kernel modules
The kernel - Correct Answer :Libraries
You are running the ping command to see if a particular host is up. How would you specify to the ping command
that only five packets get sent to the remote host?
ping --count 5 host.example.com
ping -c 5 host.example.com
P 4