Weekend Sale Special - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: top65certs

LPIC Level 1 102-500 Passing Score

Page: 15 / 15
Total 197 questions

LPIC-1 Exam 102, Part 2 of 2, version 5.0 Questions and Answers

Question 57

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}"

Question 58

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.

Question 59

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

Options:

Page: 15 / 15
Total 197 questions