ExamGecko
Home Home / LPI / 702-100

LPI 702-100 Practice Test - Questions Answers

Question list
Search
Search

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
A.
disclosure only
Answers
B.
non-disclosure only
B.
non-disclosure only
Answers
C.
non-disclosure only
C.
non-disclosure only
Answers
D.
disclosure and non-disclosure only
D.
disclosure and non-disclosure only
Answers
E.
non-disclosure and non-disclosure Only
E.
non-disclosure and non-disclosure Only
Answers
Suggested answer: E

What does S l represent in the following lines from a Bourne shell script:

#! /bin/sh

cp SI 52

A.
A control operator.
A.
A control operator.
Answers
B.
An environmental variable.
B.
An environmental variable.
Answers
C.
A function.
C.
A function.
Answers
D.
A positional parameter.
D.
A positional parameter.
Answers
E.
The shebang.
E.
The shebang.
Answers
Suggested answer: D

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

A.
A.
Answers
B.
B.
Answers
C.
C.
Answers
D.
D.
Answers
Suggested answer: B

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
A.
file mybackup
Answers
B.
Is -1 mybackup
B.
Is -1 mybackup
Answers
C.
tar -t mybackup
C.
tar -t mybackup
Answers
D.
whatis mybackup
D.
whatis mybackup
Answers
E.
touch mybackup
E.
touch mybackup
Answers
Suggested answer: A

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

A.
diskcontro1
A.
diskcontro1
Answers
B.
mkswap
B.
mkswap
Answers
C.
swap
C.
swap
Answers
D.
swapct1
D.
swapct1
Answers
E.
swapinfo
E.
swapinfo
Answers
Suggested answer: D

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

A.
-x
A.
-x
Answers
B.
-c
B.
-c
Answers
C.
-z
C.
-z
Answers
D.
-J
D.
-J
Answers
E.
-v
E.
-v
Answers
Suggested answer: C, D

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)

A.
See in Explanation
A.
See in Explanation
Answers
Suggested answer: A

Explanation:

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

A.
Two or more times
A.
Two or more times
Answers
B.
Exactly one time
B.
Exactly one time
Answers
C.
Any number of times
C.
Any number of times
Answers
D.
Zero or one times
D.
Zero or one times
Answers
E.
One or more times
E.
One or more times
Answers
Suggested answer: D

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

A.
See in Explanation
A.
See in Explanation
Answers
Suggested answer: A

Explanation:

What is the purpose of the nice command'?

A.
Run a command with the permissions of another user
A.
Run a command with the permissions of another user
Answers
B.
Run a command with limited access to a specified directory
B.
Run a command with limited access to a specified directory
Answers
C.
Run a command with additional filesystem permissions
C.
Run a command with additional filesystem permissions
Answers
D.
Run a command with additional secondary groups.
D.
Run a command with additional secondary groups.
Answers
E.
Run a command with a non-standard priority.
E.
Run a command with a non-standard priority.
Answers
Suggested answer: A, E
Total 60 questions
Go to page: of 6