ExamGecko
Home Home / LPI / 101-500

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

Question list
Search
Search

Which of the following pieces of information of an existing file is changed when a hard link pointing to that file is created?

A.
File size
A.
File size
Answers
B.
Modify timestamp
B.
Modify timestamp
Answers
C.
Link count
C.
Link count
Answers
D.
Inode number
D.
Inode number
Answers
E.
Permissions
E.
Permissions
Answers
Suggested answer: C

Explanation:

NEW QUESTIONS

Which of the following commands are common Linux commands for file management? (Choose three correct answers.)

A.
copy
A.
copy
Answers
B.
mv
B.
mv
Answers
C.
move
C.
move
Answers
D.
cp
D.
cp
Answers
E.
mkdir
E.
mkdir
Answers
Suggested answer: B, D, E

Which of the following examples for Bash file globbing matches a file named root-can-do-this.txt when used in the directory holding that file? (Choose three correct answers.)

A.
root*can?do-this.{txt,odt}
A.
root*can?do-this.{txt,odt}
Answers
B.
r[oOoO]t-can-do*.txt
B.
r[oOoO]t-can-do*.txt
Answers
C.
{root,user,admin}-can-??-this.txt
C.
{root,user,admin}-can-??-this.txt
Answers
D.
root*can*do??this.txt
D.
root*can*do??this.txt
Answers
E.
root***{can,may}-do-this.[tT][xX][tT]
E.
root***{can,may}-do-this.[tT][xX][tT]
Answers
Suggested answer: A, B, C

CORRECT TEXT

What command changes the nice level of a running process? (Specify ONLY the command without any path or parameters)

A.
renice
A.
renice
Answers
Suggested answer: A

Which option to the tee command will cause the output to be concatenated on the end of the output file instead of overwriting the existing file contents?

A.
-a
A.
-a
Answers
B.
-c
B.
-c
Answers
C.
--no-clobber
C.
--no-clobber
Answers
D.
--continue
D.
--continue
Answers
Suggested answer: A

What is the purpose of the xargs command?

A.
It passes arguments to an X server.
A.
It passes arguments to an X server.
Answers
B.
It reads standard input (STDIN) and builds up command lines to execute.
B.
It reads standard input (STDIN) and builds up command lines to execute.
Answers
C.
It helps shellscripts take variable argument lists.
C.
It helps shellscripts take variable argument lists.
Answers
D.
It asks a question, graphically, and returns the answer to the shell.
D.
It asks a question, graphically, and returns the answer to the shell.
Answers
E.
It allows users to specify long options for commands that normally only accept short options.
E.
It allows users to specify long options for commands that normally only accept short options.
Answers
Suggested answer: B

Which of the following commands can be used to create a new file that is 100kB in size?

A.
dd
A.
dd
Answers
B.
file
B.
file
Answers
C.
mkfile
C.
mkfile
Answers
D.
touch
D.
touch
Answers
Suggested answer: A

When using regular expressions, which of the following characters match the beginning of a line?

A.
^
A.
^
Answers
B.
?
B.
?
Answers
C.
*
C.
*
Answers
D.
+
D.
+
Answers
E.
$
E.
$
Answers
Suggested answer: A

Which of the following statements is correct for a command line ending with a & character?

A.
The command's output is redirected to/dev/null.
A.
The command's output is redirected to/dev/null.
Answers
B.
The result of the command defines if the next command will be run.
B.
The result of the command defines if the next command will be run.
Answers
C.
Thecommand is run in background of the current shell.
C.
Thecommand is run in background of the current shell.
Answers
D.
The command is run as a direct child of theinitprocess.
D.
The command is run as a direct child of theinitprocess.
Answers
Suggested answer: C

Which of the following commands will produce the following output?

A.
jobs
A.
jobs
Answers
B.
proclist
B.
proclist
Answers
C.
netstat
C.
netstat
Answers
D.
ps
D.
ps
Answers
Suggested answer: D
Total 246 questions
Go to page: of 25