102-500 Exam Dumps [New] Best LPIC-1 Exam 102 – Part 2 of 2 – Version 5.0 Exam Solution

Use our 102-500 exam dumps today to prepare for the LPIC-1 Exam 102 – Part 2 of 2 – version 5.0 exam. The new 102-500 exam dumps is the best solution for Lpi 102-500 exams.

The PassITDump 102-500 exam dumps include a 102-500 exam PDF and 102-500 exam software exercises. With 194 new exam questions, you can really solve your LPIC-1 Exam 102 – Part 2 of 2 – version 5.0 exam puzzles.

Check 102-500 free dumps questions to get a better understanding of 102-500 exams.

Question 1:

FILL BLANK Which file, if present, must contain all users that are allowed to use the cron scheduling system? (Specify the full name of the file, including path.)

Correct Answer: crontab


Question 2:

FILL BLANK What is the top-level directory which contains the configuration files for CUPS? (Specify the full path to the directory.)

Correct Answer: /etc/cups/ cups-files.conf


Question 3:

FILL BLANK The presence of what file will temporarily prevent all users except root from logging into a system? (Specify the full name of the file, including path.)

Correct Answer: /sbin/nologin


Question 4:

FILL BLANK Which file is processed by newaliases? (Specify the full name of the file, including path.)

Correct Answer: /etc/mail/aliases


Question 5:

FILL BLANK What option to useraddcreates a new user\’s home directory and provisions it with a set of standard files? (Specify only the option name without any values or parameters.)

Correct Answer: -D


Question 6:

Which of the following configuration files should be modified to set default shell variables for all users?

A. /etc/bashrc

B. /etc/profile

C. ~/.bash_profile

D. /etc/.bashrc

Correct Answer: B


Question 7:

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

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

Correct Answer: A


Question 8:

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

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.

Correct Answer: B


Question 9:

What keyword is missing from this code sample of a shell script? ____ i in *.txt; do echo $i done

A. for

B. loop

C. until

D. while

Correct Answer: A


Question 10:

Which of the following is the best way to list all defined shell variables?

A. env

B. set

C. env -a

D. echo $ENV

Correct Answer: B


Question 11:

Which of the following SQL statements will select the fields name and address from the contacts table?

A. SELECT (name, address) FROM contacts;

B. SELECT (name address) FROM contacts;

C. SELECT name, address FROM contacts;

D. SELECT name address FROM contacts;

Correct Answer: C


Question 12:

What benefit does an alias in bash provide?

A. It provides faster lookups for commands in the system directory.

B. It creates a local copy of a file from another directory.

C. It hides what command you are running from others.

D. It allows a string to be substituted for the first word of a simple command.

Correct Answer: D


Question 13:

What output will the command seq 10 produce?

A. A continuous stream of numbers increasing in increments of 10 until stopped.

B. The numbers 1 through 10 with one number per line.

C. The numbers 0 through 9 with one number per line.

D. The number 10 to standard output.

Correct Answer: B


Question 14:

What is the purpose of the file /etc/profile?

A. It contains the welcome message that is displayed after login.

B. It contains security profiles defining which users are allowed to log in.

C. It contains environment variables that are set when a user logs in.

D. It contains default application profiles for users that run an application for the first time.

Correct Answer: C


Question 15:

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.

Correct Answer: BCD