[Free] Download New Latest (November) CompTIA LX0-101 Actual Tests 51-60

Ensurepass

QUESTION 51

Which of the following commands displays the contents of a gzip compressed tar archive?

 

A.

gzip archive.tgz | tar xvf –

B.

tar ztf archive.tgz

C.

gzip -d archive.tgz | tar tvf –

D.

tar cf archive.tgz

 

Answer: B

 

 

QUESTION 52

What is the difference between the i and a commands of the vi editor?

 

A.

i (interactive) requires the user to explicitly switch between vi modes whereas a (automatic) switches modes automatically.

B.

i (insert) inserts text before the current cursor position whereas a (append) inserts text after the cursor.

C.

i (independent rows) starts every new line at the first character whereas a (aligned rows) keeps the indentation of the previous line.

D.

i (interrupt) temporarily suspends editing of a file to the background whereas a (abort) terminates editing.

 

Answer: B

 

 

QUESTION 53

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

 

A.

BASHEXEC

B.

BASHRC

C.

PATH

D.

EXECPATH

E.

PATHRC

 

Answer: C

 

 

QUESTION 54

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

 

A.

SIGTERM

B.

SIGINT

C.

SIGSTOP

D.

SIGKILL

 

Answer: B

 

 

QUESTION 55

What is the effect of the egrep command when the -v option is used?

 

A.

It enables color to highlight matching parts.

B.

It only outputs non-matching lines.

C.

It shows the command’s version information.

D.

It changes the output order showing the last matching line first.

 

Answer: B

 

 

QUESTION 56

Which of the following commands will NOT update the modify timestamp on the file /tmp/myfile.txt?

 

A.

file /tmp/myfile.txt

B.

echo “Hello” >/tmp/myfile.txt

C.

sed -ie “s/1/2/” /tmp/myfile.txt

D.

echo -n “Hello” >>/tmp/myfile.txt

E.

touch /tmp/myfile.txt

 

Answer: A

 

 

QUESTION 57

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

 

A.

-10

B.

0

C.

10

D.

20

 

Answer: C

 

 

QUESTION 58

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

 

A.

tr ‘s’ ‘ ‘ < a.txt > b.txt

B.

tr -c ‘ ‘ < a.txt > b.txt

C.

tr -d ‘ ‘ < a.txt > b.txt

D.

tr -r ‘ ‘ ‘n’ < a.txt > b.txt

E.

tr -s ‘ ‘ < a.txt > b.txt

 

Answer: E

 

 

QUESTION 59

Which shell command is used to continue background execution of a suspended command?

 

A.

&

B.

bg

C.

cont

D.

exec

E.

:&

 

Answer: B

 

 

QUESTION 60

In the vi editor, which of the following commands will copy the current line into the vi buffer?

 

A.

c

B.

cc

C.

1c

D.

yy

E.

1y

 

Answer: D

 

Free VCE & PDF File for CompTIA LX0-101 Actual Tests

Instant Access to Free VCE Files: CompTIA | VMware | SAP …
Instant Access to Free PDF Files: CompTIA | VMware | SAP …

This entry was posted in LX0-101 Actual Tests (November) and tagged , , , , , , . Bookmark the permalink.