Skip to main content

102-400 Real Exam Questions

LPI Level 1 Exam 102, Junior Level Linux Certification, Part 2 of 2

120 questions available · Page 1 of 12

Updated Exam DumpsVerified AnswersPass Guarantee

Get Complete Exam Dumps
Question 1 Fill in the blank

FILL BLANK

By default, the contents of which directory will be copied to a new user's home directory when the account is created by passing the -m option to the useradd command? (Specify the full path to the directory.)

Show answer and explanation

Accepted answer: Answer: /etc/skel

Question 2 Single choice

Which configuration file would be edited to change default options for the OpenSSH server?

  1. A

    /etc/ssh/sshd_config

  2. B

    /etc/ssh/ssh

  3. C

    /etc/ssh/server

  4. D

    /etc/ssh/ssh_config

  5. E

    /etc/ssh/ssh_server

Show answer and explanation

Correct answer: A

Question 3 Single choice

What is the purpose of the iconv command?

  1. A

    It converts bitmap images from one format to another such as PNG to JPEG.

  2. B

    It verifies that the root directory tree complies to all conventions from the Filesystem Hierarchy Standard (FHS).

  3. C

    It displays additional meta information from icon files ending in .ico.

  4. D

    It changes the mode of an inode in the ext4 file system.

  5. E

    It converts files from one character encoding to another.

Show answer and explanation

Correct answer: E

Question 4 Fill in the blank

FILL BLANK

What word is missing from the following SQL statement?

__________ count(*) from tablename;

(Please specify the missing word using lower-case letters only.)

Show answer and explanation

Accepted answer: Answer: select

Question 5 Fill in the blank

FILL BLANK

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

Show answer and explanation

Accepted answer: Answer: groupadd, /usr/sbin/groupadd

Question 6 Single choice

Which of the following SQL queries counts the number of occurrences for each value of the field order_type in the table orders?

  1. A

    SELECT order_type,COUNT(*) FROM orders WHERE order_type=order_type;

  2. B

    SELECT order_type,COUNT(*) FROM orders GROUP BY order_type;

  3. C

    COUNT(SELECT order_type FROM orders);

  4. D

    SELECT COUNT(*) FROM orders ORDER BY order_type;

  5. E

    SELECT AUTO_COUNT FROM orders COUNT order_type;

Show answer and explanation

Correct answer: B

Question 7 Single choice

For accessibility assistance, which of the following programs is an on-screen keyboard?

  1. A

    xkb

  2. B

    atkb

  3. C

    GOK

  4. D

    xOSK

Show answer and explanation

Correct answer: C

Question 8 Multiple choice

What is the command to delete the default gateway from the system IP routing table? (Choose TWO correct answers.)

  1. A

    route del default

  2. B

    ifconfig unset default

  3. C

    netstat -r default

  4. D

    ip route del default

  5. E

    sysctl ipv4.default_gw=0

Show answer and explanation

Correct answers: A, D

Question 9 Single choice

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

  1. A

    It is the process ID of the echo command.

  2. B

    It is the process ID of the current shell.

  3. C

    It is the process ID of the last command executed.

  4. D

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

Show answer and explanation

Correct answer: B

Question 10 Multiple choice

What is true regarding the command userdel --force --remove bob? (Choose TWO correct answers.)

  1. A

    The user bob is removed from the system's user database.

  2. B

    The user bob's home directory is removed.

  3. C

    The locate database is updated to drop files owned by bob.

  4. D

    All files owned by bob are remove from all mounted filesystems.

  5. E

    In case bob was the last member of a group, that group is deleted.

Show answer and explanation

Correct answers: A, B