Linux Essentials LPI 010-160 - WGU D281

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/79

flashcard set

Earn XP

Description and Tags

wgu d281 linux foundations

Last updated 12:38 PM on 8/5/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

80 Terms

1
New cards

What are the differences between hard disk drives and solid state disks? (Choose two.)

A. Hard disks have a motor and moving parts, solid state disks do not., E. Solid state disks provide faster access to stored data than hard disks.

2
New cards

Reverse DNS assigns hostnames to IP addresses. How is the name of the IP address 198.51.100.165 stored

on a DNS server?

B. In the PTR record for 165.100.51.198.in-addr.arpa.

3
New cards

Which of the following types of bus can connect hard disk drives with the motherboard?

D. The SATA bus

4
New cards

Members of a team already have experience using Red Hat Enterprise Linux. For a small hobby project, the

team wants to set up a Linux server without paying for a subscription. Which of the following Linux distributions

allows the team members to apply as much of their Red Hat Enterprise Linux knowledge as possible?

D. CentOS

5
New cards

What information can be displayed by top?

B. Running processes, ordered by CPU or RAM consumption.

6
New cards

Which of the following commands can be used to resolve a DNS name to an IP address?

D. host

7
New cards

Which of the following outputs comes from the command free?

total used free shared buff/cache available

mem: 16123128 12565680 2011624 412128 1545824 7180416

8
New cards

What is true about the dmesg command? (Choose two.)

C. It displays the content of the Linux kernel's ring buffer.

E. It might not display older information because it was overwritten by newer information.

9
New cards

Which of the following outputs could stem from the command last?

E. root tty2 Wed May 17 21:11 - 21:11 (00:00)

10
New cards

What is the UID of the user root?

0

11
New cards

Which permissions are set on a regular file once the permissions have been modified with the command

chmod 654 file.txt?

E. -rw-r-xr--

12
New cards

What is true about the owner of a file?

Each file is owned by exactly one user and one group.

13
New cards

Which of the following permissions are set on the /tmp/ directory?

rwxrwxrwt

14
New cards

Which command adds the new user tux and creates the user's home directory with default configuration

files?

useradd -m tux

15
New cards

What information is stored in /etc/passwd? (Choose three.)

B. The numerical user ID

C. The username

D. The encrypted password

16
New cards

Which of the following tar options handle compression? (Choose two.)

B. -z

D. -j

17
New cards

What keyword is used in a shell script to begin a loop? (Specify one keyword only, without any additional

information.)

for

18
New cards

Which of the following commands creates an archive file work.tar from the contents of the directory ./

work/?

tar -cf work.tar ./work/

19
New cards

Which of the following keys can be pressed to exit less?

q

20
New cards

The current directory contains the following file:

-rwxr-xr-x 1 root root 859688 Feb 7 08:15 test.sh

Given that the file is a valid shell script, how can this script be executed? (Choose two.)

D. ./test.sh

E. bash test.sh

21
New cards

Which of the following commands sorts the output of the command export-logs?

D. export-logs | sort

22
New cards

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

do

echo $file

done

E. a. txt

b. txt

23
New cards

Which of the following commands will search for the file foo.txt under the directory /home?

find /home -name foo.txt

24
New cards

The current directory contains the following file:

-rw-r—r— 1 root exec 24551 Apr 2 12:36 test.sh

The file contains a valid shell script, but executing this file using ./test.sh leads to this error:

bash: ./test.sh: Permission denied

What should be done in order to successfully execute the script?

The execute bit should be set in the file's permissions.

25
New cards

What is a Linux distribution?

A bundling of the Linux kernel, system utilities and other software.

26
New cards

Which package management tool is used in Red Hat-based Linux Systems?

RPM

27
New cards

Which of the following programs is a graphical editor for vector graphics?

Inkscape

28
New cards

Where is the operating system of a Raspberry Pi stored?

On a removable SD card which is put into the Raspberry Pi.

29
New cards

What is defined by a Free Software license?

Conditions for modifying and distributing the licensed software.

30
New cards

Why are web browser cookies considered dangerous?

Cookies support identification and tracking of users

31
New cards

Which of the following are typical services offered by public cloud providers? (Choose three.)

A. Platform as a Service(PaaS)

B. Infrastructure as a Service(IaaS)

E. Software as a Service (SaaS)

32
New cards

Which of the following characters in a shell prompt indicates the shell is running with root privileges?

#

33
New cards

Which of the following commands are used to get information on the proper use of ls? (Choose two.)

D. man ls

E. info ls

34
New cards

What is true about a recursive directory listing?

It includes the content of sub-directories.

35
New cards

Running the command rm Downloads leads to the following error:

rm: cannot remove 'Downloads/': Is a directory

Which of the following commands can be used instead to remove Downloads, assuming Downloads is

empty? (Choose two.)

B. rmdir Downloads

E. rm -r Downloads

36
New cards

Which of the following directories contains information, documentation and example configuration files for

installed software packages?

/usr/share/doc/

37
New cards

Which of the following commands adds the directory /new/dir/ to the PATH environment variable?

export PATH=/new/dir: $PATH

38
New cards

A user is currently in the directory /home/user/Downloads/ and runs the command

ls ../Documents/

Assuming it exists, which directory's content is displayed?

/Documents/

39
New cards

A directory contains the following three files:

texts 1.txt

texts 2.txt

texts 3.csv

Which command copies the two files ending in .txt to the /tmp/ directory?

cp *.txt /tmp/

40
New cards

When typing a long command line at the shell, what single character can be used to split a command across

multiple lines?

\

41
New cards

Which of the following DNS record types hold an IP address? (Choose two.)

C. MX

D. A

42
New cards

Which of the following values could be a process ID on Linux?

21398

43
New cards

Which of the following is a protocol used for automatic IP address configuration?

DHCP

44
New cards

Which of the following devices represents a hard disk partition?

/dev/sda2

45
New cards

Which of the following statements regarding Linux hardware drivers is correct?

Drivers are either compiled into the Linux kernel or are loaded as kernel modules.

46
New cards

What can be found in the /proc/ directory?

One directory per running process.

47
New cards

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 distribution.

Which of the following Linux distributions meet these requirements? (Choose two.)

A. Ubuntu Linux LTS

E. Red Hat Enterprise Linux

48
New cards

Which of the following directories must be mounted with read and write access if it resides on its own dedicated file system?

/var

49
New cards

The ownership of the file doku.odt should be changed. The new owner is named tux. Which command

accomplishes this change?

chown tux doku.odt

50
New cards

What happens to a file residing outside the home directory when the file owner's account is deleted? (Choose

two.)

C. The UID of the former owner is shown when listing the file's details.

E. Ownership and permissions of the file remain unchanged.

51
New cards

Which statements about the directory /etc/skel are correct? (Choose two.)

C. The files from the directory are copied to the home directory of a new user when the account is created.

D. The directory contains a default set of configuration files used by the useradd command.

52
New cards

What is true about links in a Linux file system?

D. A symbolic link can point to a file on another file system.

53
New cards

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), 1001 (libvirt)

B. /etc/passwd

C. /etc/group

54
New cards

Which of the following tasks can the command passwd accomplish? (Choose two.)

C. Create a new user account.

E. Lock a user account.

55
New cards

What is true about the su command?

It runs a shell or command as another user.

56
New cards

What parameter of ls prints a recursive listing of a directory's content? (Specify ONLY the option name

without any values or parameters.)

ls -R

57
New cards

Most commands on Linux can display information on their usage. How can this information typically be

displayed?

By running the command with the option -m or --manpage.

58
New cards

Which of the following commands shows the absolute path to the current working directory?

pwd

59
New cards

Which of the following commands output the content of the file Texts 2.txt? (Choose two.)

A. cat 'Texts 2.txt'

B. cat -- Texts 2.txt

60
New cards

Which command displays file names only and no additional information?

ls -a

61
New cards

What is the purpose of the PATH environment variable?

It allows the execution of commands without the need to know the location of the executable.

62
New cards

Which of the following commands sets the variable USERNAME to the value bob?

USERNAME=bob

63
New cards

What command displays manual pages? (Specify ONLY the command without any path or parameters.)

man

64
New cards

Which command copies the contents of the directory /etc/, including all sub-directories, to /root/?

cp -r /etc/* /root

65
New cards

Which of the following commands puts the lines of the file data.csv into alphabetical order?

sort data.csv

66
New cards

Which of the following examples shows the general structure of a for loop in a shell script?

for file in *.txt

do

echo $i

done

67
New cards

Which operator in a regular expression matches the preceding character either zero or one time?

?

68
New cards

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

The result is an empty line instead of the content of the variable MYVAR. How should MYVAR be set in order to

make script.sh display the content of MYVAR?

export MYVAR=value

69
New cards

What is the return value of a shell script after successful execution?

0

70
New cards

Which of the following commands creates the ZIP archive poems.zip containing all files in the current

directory whose names end in .txt?

zip poems.zip *.txt

71
New cards

Which of the following statements are true regarding a typical shell script? (Choose two.)

A. It has the executable permission bit set.

E. It is compiled into a binary file compatible with the current machine architecture.

72
New cards

Which of the following commands extracts the contents of the compressed archive file1.tar.gz?

tar -xzf file1.tar.gz

73
New cards

Which of the following commands finds all lines in the file operating-systems.txt which contain the term

linux, regardless of the case?

grep -i linux operating-systems.txt

74
New cards

Which one of the following statements concerning Linux passwords is true?

Passwords are only stored in hashed form.

75
New cards

Which of the following programs are web servers? (Choose two.)

A. Apache HTTPD

E. NGINX

76
New cards

Which of the following Linux Distributions is derived from Red Hat Enterprise Linux?

CentOS

77
New cards

Which of the following statements is true about Free Software?

It may be modified by anyone using it.

78
New cards

How is a new Linux computing instance provisioned in an laaS cloud?

A provider-specific configuration file describing the desired installation is uploaded to the cloud provider.

79
New cards

What are the differences between a private web browser window and a regular web browser window? (Choose

three.)

B. Private web browser windows do not store cookies persistently.

D. Private web browser windows do not keep records in the browser history.

E. Private web browser windows do not send regular stored cookies.

80
New cards

What is the preferred source for the installation of new applications in a Linux based operating system?

The distribution's package repository