Skip to main content

LX0-104 Real Exam Questions

CompTIA Linux+ [Powered by LPI] 2

178 questions available · Page 1 of 18

Updated Exam DumpsVerified AnswersPass Guarantee

Get Complete Exam Dumps
Question 1 Single choice

Which command will set the local machine's timezone to UTC?

  1. A

    cat UTC > /etc/timezone

  2. B

    ln -s /usr/share/zoneinfo/UTC /etc/localtime

  3. C

    date --timezone=UTC

  4. D

    mv /usr/timezone/UTC /etc

Show answer and explanation

Correct answer: B

Question 2 Single choice

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

  1. A

    It contains the welcome message that is displayed after login.

  2. B

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

  3. C

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

  4. D

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

Show answer and explanation

Correct answer: C

Question 3 Single choice

Which of the following commands will convert files from one character encoding to another?

  1. A

    convert

  2. B

    enc2utf

  3. C

    iconv

  4. D

    transcode

Show answer and explanation

Correct answer: C

Question 4 Single choice

Which of the following is a legacy program provided by CUPS for sending files to the printer queues on the command line?

  1. A

    lpd

  2. B

    lpp

  3. C

    lpq

  4. D

    lpr

Show answer and explanation

Correct answer: D

Question 5 Single choice

Which of the following files assigns a user to its primary group?

  1. A

    /etc/pgroup

  2. B

    /etc/shadow

  3. C

    /etc/group

  4. D

    /etc/passwd

  5. E

    /etc/gshadow

Show answer and explanation

Correct answer: D

Question 6 Single choice

Which file contains the date of the last change of a user's password?

  1. A

    /etc/gshadow

  2. B

    /etc/passwd

  3. C

    /etc/pwdlog

  4. D

    /etc/shadow

  5. E

    /var/log/shadow

Show answer and explanation

Correct answer: D

Question 7 Multiple choice

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.)

  1. A

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

  2. B

    The script file must be found in the $PATH.

  3. C

    The script file must have the executable permission bit set.

  4. D

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

  5. E

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

Show answer and explanation

Correct answers: B, C, D

Question 8 Multiple choice

What of the following can be done by the command ifconfig? (Choose TWO correct answers.)

  1. A

    Set a network interface active or inactive.

  2. B

    Specify the kernel module to be used with a network interface.

  3. C

    Allow regular users to change the network configuration of a network interface.

  4. D

    Change the netmask used on a network interface.

  5. E

    Specify which network services are available on a network interface.

Show answer and explanation

Correct answers: A, D

Question 9 Fill in the blank

FILL BLANK

Which parameter must be passed to ifconfig to activate a previously inactive network interface? (Specify the parameter only without any command, path or additional options)

Show answer and explanation

Accepted answer: up

Question 10 Single choice

Which environment variable will override all LC_* variables?

  1. A

    LANG

  2. B

    LC_ALL

  3. C

    LC_COLLATE

  4. D

    LOCALE

Show answer and explanation

Correct answer: B