LPI 702-100 practice test

BSD Specialist

Last exam update: Nov 14 ,2025
Page 1 out of 4. Viewing questions 1-15 out of 60

Question 1

Consider the following file legal file:
disclosure
non-disclosure
non-disclosure
Which line or lines in the file does the following command match? Note the space after the dash
within the brackets.
grep "non [-] disclosure" legalfile

  • A. disclosure only
  • C. non-disclosure only
  • D. disclosure and non-disclosure only
  • E. non-disclosure and non-disclosure Only
Mark Question:
Answer:

E

User Votes:
A
50%
C
50%
D
50%
E
50%
Discussions
vote your answer:
A
C
D
E
0 / 1000

Question 2

What does S l represent in the following lines from a Bourne shell script:
#! /bin/sh
cp SI 52

  • A. A control operator.
  • B. An environmental variable.
  • C. A function.
  • D. A positional parameter.
  • E. The shebang.
Mark Question:
Answer:

D

User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
Discussions
vote your answer:
A
B
C
D
E
0 / 1000

Question 3

Which of the following excerpts is a valid if condition in the Bourne shell?
A.

B.

C.

D.

Mark Question:
Answer:

B

User Votes:
Discussions
vote your answer:
0 / 1000

Question 4

A file called mybackup is found while investigating a USB pen drive. Which utility can be used to
determine the kind of data that is contained in that file?

  • A. file mybackup
  • B. Is -1 mybackup
  • C. tar -t mybackup
  • D. whatis mybackup
  • E. touch mybackup
Mark Question:
Answer:

A

User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
Discussions
vote your answer:
A
B
C
D
E
0 / 1000

Question 5

Which BSD command lists, adds, or deletes swap devices?

  • A. diskcontro1
  • B. mkswap
  • C. swap
  • D. swapct1
  • E. swapinfo
Mark Question:
Answer:

D

User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
Discussions
vote your answer:
A
B
C
D
E
0 / 1000

Question 6

Which of the following tar options handle compression'? (Choose TWO correct answers)

  • A. -x
  • B. -c
  • C. -z
  • D. -J
  • E. -v
Mark Question:
Answer:

C, D

User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
Discussions
vote your answer:
A
B
C
D
E
0 / 1000

Question 7

What symbol is used in the vi editor to start the forward search for a string? (Specify ONLY the single
character symbol without any parameters)

Mark Question:
Answer:

See in
Explanation


Explanation:

Discussions
0 / 1000

Question 8

How often does? match the preceding expression in a regular expression?

  • A. Two or more times
  • B. Exactly one time
  • C. Any number of times
  • D. Zero or one times
  • E. One or more times
Mark Question:
Answer:

D

User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
Discussions
vote your answer:
A
B
C
D
E
0 / 1000

Question 9

What command creates a new directory? (Specify ONLY the command without any path or
parameters.)

Mark Question:
Answer:

See in
Explanation


Explanation:

Discussions
0 / 1000

Question 10

What is the purpose of the nice command'?

  • A. Run a command with the permissions of another user
  • B. Run a command with limited access to a specified directory
  • C. Run a command with additional filesystem permissions
  • D. Run a command with additional secondary groups.
  • E. Run a command with a non-standard priority.
Mark Question:
Answer:

A, E

User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
Discussions
vote your answer:
A
B
C
D
E
0 / 1000

Question 11

Which command sends the contents of the file myconfigfile by email to me@mycompany. com?

Mark Question:
Answer:

A

User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
Discussions
vote your answer:
A
B
C
D
E
0 / 1000

Question 12

While in the csh or tcsh shell, which command changes the timezone environment variable to GMT?

  • A. export TZ=GMT
  • B. setenv TZ GMT
  • C. env TZ=GMT
  • D. TZ=GMT; export TZ
  • E. environ TZ GMT
Mark Question:
Answer:

B

User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
Discussions
vote your answer:
A
B
C
D
E
0 / 1000

Question 13

While using vi as superuser. the attempt to save a file while quitting the editor leads to an error
indicating that the file is read-only. How can the file permissions be overridden to save the edits to
the file and quit the editor?
A.: fw!
B.: fwq
C.: ql
D.: wq
E.: wq!

Mark Question:
Answer:

E

User Votes:
Discussions
vote your answer:
0 / 1000

Question 14

Which command shows all processes owned by the user bob?

  • A. who -1 bob
  • B. pgrep -u bob
  • C. ps -o -a bob
  • D. top bob
  • E. last -p bob
Mark Question:
Answer:

B

User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
Discussions
vote your answer:
A
B
C
D
E
0 / 1000

Question 15

On BSD systems that provide an interactive adduser script, which configuration file stores the default
adduser settings?

  • A. adduser.conf
  • B. login, conf
  • C. pw.conf
  • D. user.conf
  • E. usermgmt. conf
Mark Question:
Answer:

A

User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
Discussions
vote your answer:
A
B
C
D
E
0 / 1000
To page 2