Certbus > Lpi > LPI Certifications > 102-500 > 102-500 Online Practice Questions and Answers

102-500 Online Practice Questions and Answers

Questions 4

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

A. mydate="$(date)"

B. mydate="exec date"

C. mydate="$((date))"

D. mydate="date"

E. mydate="${date}"

Browse 199 Q&As
Questions 5

Which of the following are requirements in order to run a shell script like a regular command from anywhere in the filesystem? (Choose THREE correct answers.)

A. The user issuing the command must be in the group script.

B. The script file must be found in the $PATH.

C. The script file must have the executable permission bit set.

D. The script must begin with a shebang-line (#!) that points to the correct interpreter.

E. The file system on which the script resides must be mounted with the option scripts.

Browse 199 Q&As
Questions 6

On a system running the KDE Display Manager, when is the /etc/kde4/kdm/Xreset script automatically executed?

A. When KDM starts

B. When a user's X session exits

C. When KDM crashes

D. When X is restarted

E. When X crashes

Browse 199 Q&As
Questions 7

What is true about the ntpdate command?

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.

Browse 199 Q&As
Questions 8

On a dual boot system, every time the system is booted back into Linux the time has been set backward by one day. Which of the following commands will correct the problem?

A. date -d '+ 1 day'

B. hwclock --systohc --localtime

C. ntpdate pool.ntp.org

D. time hwclock

Browse 199 Q&As
Questions 9

Which of the following details is NOT provided in any output from the netstat utility?

A. broadcast services

B. interface statistics

C. masquerading connections

D. network connections

E. routing tables

Browse 199 Q&As
Questions 10

Which of the following commands can be used to display the local routing table? (Choose TWO correct answers.)

A. ifconfig

B. dig

C. netstat

D. route

E. trackroute

Browse 199 Q&As
Questions 11

Which command is used to add an empty group to the system? (Specify ONLY the command without any path or parameters.)

A. groupadd

B. /usr/sbin/groupadd

C. PlaceHolder

D. PlaceHolder

Browse 199 Q&As
Exam Code: 102-500
Exam Name: LPIC-1 - Exam 102 - version 5.0
Last Update: Mar 17, 2025
Questions: 199 Q&As

PDF

$49.99

VCE

$55.99

PDF + VCE

$65.99