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

Viewing page 4 out of 7 pages
Viewing questions 31-40 out of questions
Questions # 31:

You are looking into a new script you received from your senior administrator. In the very first line you notice a #! followed by a file path. This indicates that:

Options:

A.

The file at that location was used to make the script.


B.

This script provides identical functionality as the file at that location.


C.

This script will self-extract into a file at that location.


D.

The program at that location will be used to process the script.


Questions # 32:

After issuing:

function myfunction { echo $1 $2 ; }

in Bash, which output does:

myfunction A B C

Produce?

Options:

A.

A B


B.

A B C


C.

A C


D.

B C


E.

C B A


Questions # 33:

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 # 34:

Which of the following commands lists all defined variables and functions within Bash?

Options:

A.

env


B.

set


C.

env -a


D.

echo $ENV


Questions # 35:

Which of the following words is used to restrict the records that are returned from a SELECT SQL query based on a supplied criteria for the values in the records?

Options:

A.

CASE


B.

FROM


C.

WHERE


D.

IF


Questions # 36:

Which of the following commands puts the output of the command date into the shell variable mydate?

Options:

A.

mydate="$(date)"


B.

mydate="exec date"


C.

mydate="$((date))"


D.

mydate="date"


E.

mydate="${date}"


Questions # 37:

What is true about the ntpdate command?

Options:

A.

It is the primary management command for the NTP time server.


B.

It updates the local system's date (i.e. day, month and year) but not the time (i.e. hours, minutes, seconds).


C.

It queries one or more NTP time servers and adjusts the system time accordingly.


D.

It sends the local system time to one or many remote NTP time servers for redistribution.


E.

It can be used by any user to set the user clock independently of the system clock.


Questions # 38:

Which command, available with all MTAs, is used to list the contents of the MTA's mail queue? (Specify ONLY the command without any path or parameters.)


Questions # 39:

What is the purpose of the command mailq?

Options:

A.

It fetches new emails from a remote server using POP3 or IMAP.


B.

It is a multi-user mailing list manager.


C.

It is a proprietary tool contained only in the qmail MTA.


D.

It queries the mail queue of the local MTA.


E.

It is a command-line based tool for reading and writing emails.


Questions # 40:

Which of the following is observed and corrected by a NTP client?

Options:

A.

The skew in time between the system clock and the hardware clock.


B.

The skew in time between the system clock and the reference clock.


C.

Changes in the time zone of the current computer's location.


D.

Adjustments needed to support Daylight Saving Time.


Viewing page 4 out of 7 pages
Viewing questions 31-40 out of questions