Pass the LPI LPIC Level 1 102-400 Questions and answers with CertsForce

Viewing page 1 out of 4 pages
Viewing questions 1-10 out of questions
Questions # 1:

What output will the following command sequence produce?

echo '1 2 3 4 5 6' | while read a b c; do

echo result: $c $b $a;

done

Options:

A.

result: 3 4 5 6 2 1


B.

result: 1 2 3 4 5 6


C.

result: 6 5 4


D.

result: 6 5 4 3 2 1


E.

result: 3 2 1


Questions # 2:

What is the difference between the commands test -e path and test -f path?

Options:

A.

They are equivalent options with the same behaviour.


B.

The -f option tests for a regular file. The -e option tests for an empty file.


C.

Both options check the existence of the path. The -f option also confirms that it is a regular file.


D.

The -f option tests for a regular file. The -e option tests for an executable file.


Questions # 3:

Which command makes the shell variable named VARIABLE visible to subshells?

Options:

A.

export $VARIABLE


B.

export VARIABLE


C.

set $VARIABLE


D.

set VARIABLE


E.

env VARIABLE


Questions # 4:

When the command echo $$ outputs 12942, what is the meaning of 12942?

Options:

A.

It is the process ID of the echo command.


B.

It is the process ID of the current shell.


C.

It is the process ID of the last command executed.


D.

It is the process ID of the last command which has been placed in the background.


Questions # 5:

When the command echo $ outputs 1, which of the following statements is true?

Options:

A.

It is the process ID of the echo command.


B.

It is the process ID of the current shell.


C.

It is the exit value of the command executed immediately before echo.


D.

It is the exit value of the echo command.


Questions # 6:

What command displays all aliases defined in the current shell? (Specify the command without any path information)


Questions # 7:

Which of the following may occur as a consequence of using the command ifconfig? (Choose THREE correct answers.)

Options:

A.

New name servers may be added to the resolver configuration.


B.

Network interfaces may become active or inactive.


C.

The routing table may change.


D.

IP addresses may change.


E.

The system's host name may change.


Questions # 8:

Which of the following commands will help identify a broken router between the local and the remote machine?

Options:

A.

ps


B.

netstat


C.

nslookup


D.

ifconfig


E.

traceroute


Questions # 9:

Which of the following is a valid IPv6 address?

Options:

A.

2001:db8:3241::1


B.

2001::db8:4581::1


C.

2001:db8:0g41::1


D.

2001%db8%9990%%1


E.

2001.db8.819f..1


Questions # 10:

Which of the following statements is valid in the file /etc/nsswitch.conf?

Options:

A.

multi on


B.

192.168.168.4 dns-server


C.

hosts: files dns


D.

include /etc/nsswitch.d/


Viewing page 1 out of 4 pages
Viewing questions 1-10 out of questions