ExamGecko
Home / LPI / 101-500 / List of questions
Ask Question

LPI 101-500 Practice Test - Questions Answers, Page 10

Add to Whishlist

List of questions

Question 91

Report Export Collapse

When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process?

-10
-10
0
0
10
10
20
20
Suggested answer: C
asked 18/09/2024
CCF AG Alexander Seidler
37 questions

Question 92

Report Export Collapse

Which of the following commands will reduce all consecutive spaces down to a single space?

tr '\s' ' ' < a.txt > b.txt
tr '\s' ' ' < a.txt > b.txt
tr -c ' ' < a.txt > b.txt
tr -c ' ' < a.txt > b.txt
tr -d ' ' < a.txt > b.txt
tr -d ' ' < a.txt > b.txt
tr -r ' ' '\n' < a.txt > b.txt
tr -r ' ' '\n' < a.txt > b.txt
tr -s ' ' < a.txt > b.txt
tr -s ' ' < a.txt > b.txt
Suggested answer: E
asked 18/09/2024
Aline Oliveira
44 questions

Question 93

Report Export Collapse

Which character, added to the end of a command, runs that command in the background as a child process of the current shell?

!
!
+
+
&
&
%
%
#
#
Suggested answer: C
asked 18/09/2024
Vahit Erciyas
46 questions

Question 94

Report Export Collapse

Which of the following commands will print the last 10 lines of a text file to the standard output?

cat -n 10 filename
cat -n 10 filename
dump -n 10 filename
dump -n 10 filename
head -n 10 filename
head -n 10 filename
tail -n 10 filename
tail -n 10 filename
Suggested answer: D
asked 18/09/2024
Govinda Bhikha
42 questions

Question 95

Report Export Collapse

Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?

fmt -f 1,4 /etc/passwd
fmt -f 1,4 /etc/passwd
split -c 1,4 /etc/passwd
split -c 1,4 /etc/passwd
cut -d : -f 1,4 /etc/passwd
cut -d : -f 1,4 /etc/passwd
paste -f 1,4 /etc/passwd
paste -f 1,4 /etc/passwd
Suggested answer: C
asked 18/09/2024
Arvin Lee
43 questions

Question 96

Report Export Collapse

Which of the following signals is sent to a process when the key combination CTRL+C is pressed on the keyboard?

SIGTERM
SIGTERM
SIGINT
SIGINT
SIGSTOP
SIGSTOP
SIGKILL
SIGKILL
Suggested answer: B
asked 18/09/2024
Jenny Silva
45 questions

Question 97

Report Export Collapse

What happens after issuing the command vi without any additional parameters?

vi starts and loads the last file used andmoves the cursor to the position where vi was when it last exited.
vi starts and loads the last file used andmoves the cursor to the position where vi was when it last exited.
vi starts and requires the user to explicitly either create a new or load an existing file.
vi starts and requires the user to explicitly either create a new or load an existing file.
vi exits with an error message as it cannot be invoked without a file name to operate on.
vi exits with an error message as it cannot be invoked without a file name to operate on.
vi starts in command mode and opens a new empty file.
vi starts in command mode and opens a new empty file.
vi starts and opens a new file which is filled with the content of the vi buffer if the buffer contains text.
vi starts and opens a new file which is filled with the content of the vi buffer if the buffer contains text.
Suggested answer: D
asked 18/09/2024
Jack de Cort
43 questions

Question 98

Report Export Collapse

Which of the following command sets the Bash variable named TEST with the content FOO?

set TEST="FOO"
set TEST="FOO"
TEST = "FOO"
TEST = "FOO"
var TEST="FOO"
var TEST="FOO"
TEST="FOO"
TEST="FOO"
Suggested answer: D
asked 18/09/2024
thanh nguyen
46 questions

Question 99

Report Export Collapse

Which variable defines the directories in which a Bash shell searches for executable commands?

BASHEXEC
BASHEXEC
BASHRC
BASHRC
PATH
PATH
EXECPATH
EXECPATH
PATHRC
PATHRC
Suggested answer: C
asked 18/09/2024
Jorge Fontes
48 questions

Question 100

Report Export Collapse

Which of the following commands determines the type of a file by using a definition database file which contains information about all common file types?

magic
magic
type
type
file
file
pmagic
pmagic
hash
hash
Suggested answer: C
asked 18/09/2024
Juan Yontz
53 questions
Total 246 questions
Go to page: of 25