Skip to main content

LX0-103 Real Exam Questions

CompTIA Linux+ [Powered by LPI] 1

120 questions available · Page 1 of 12

Updated Exam DumpsVerified AnswersPass Guarantee

Get Complete Exam Dumps
Question 1 Multiple choice

Which of the following commands can be used to determine how long the system has been running?
(Choose TWO correct answers.)

  1. A

    uptime

  2. B

    up

  3. C

    top

  4. D

    uname -u

  5. E

    time up

Show answer and explanation

Correct answers: A, C

Question 2 Single choice

Which of the following command sets the Bash variable named TEST with the content FOO?

  1. A

    set TEST="FOO"

  2. B

    TEST = "FOO"

  3. C

    var TEST="FOO"

  4. D

    TEST="FOO"

Show answer and explanation

Correct answer: D

Question 3 Multiple choice

Which of the following commands set the sticky bit for the directory /tmp? (Choose TWO correct answers.)

  1. A

    chmod +s /tmp

  2. B

    chmod +t /tmp

  3. C

    chmod 1775 /tmp

  4. D

    chmod 4775 /tmp

  5. E

    chmod 2775 /tmp

Show answer and explanation

Correct answers: B, C

Question 4 Multiple choice

Which of the following commands creates an ext3 filesystem on /dev/sdb1? (Choose TWO correct answers.)

  1. A

    /sbin/mke2fs -j /dev/sdb1

  2. B

    /sbin/mkfs -t ext3 /dev/sdb1

  3. C

    /sbin/mkfs -c ext3 /dev/sdb1

  4. D

    /sbin/mke3fs -j /dev/sdb1

Show answer and explanation

Correct answers: A, B

Question 5 Multiple choice

What of the following statements are true regarding /dev/ when using udev? (Choose TWO correct answers.)

  1. A

    Entries for all possible devices get created on boot even if those devices are not connected.

  2. B

    Additional rules for udev can be created by adding them to /etc/udev/rules.d/.

  3. C

    When using udev, it is not possible to create block or character devices in /dev/ using mknod.

  4. D

    The /dev/ directory is a filesystem of type tmpfs and is mounted by udev during system startup.

  5. E

    The content of /dev/ is stored in /etc/udev/dev and is restored during system startup.

Show answer and explanation

Correct answers: B, D

Question 6 Multiple choice

What information can the lspci command display about the system hardware? (Choose THREE correct answers.)

  1. A

    Device IRQ settings

  2. B

    PCI bus speed

  3. C

    System battery type

  4. D

    Device vendor identification

  5. E

    Ethernet MAC address

Show answer and explanation

Correct answers: A, B, D

Question 7 Single choice

In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows?

  1. A

    By using the command :repeat followed by the number and the command.

  2. B

    By specifying the number right in front of a command such as 4l or 2yj.

  3. C

    By selecting all affected lines using the shift and cursor keys before applying the command.

  4. D

    By issuing a command such as :set repetition=4 which repeats every subsequent command 4 times.

Show answer and explanation

Correct answer: B

Question 8 Single choice

What is the purpose of the Filesystem Hierarchy Standard?

  1. A

    It is a security model used to ensure files are organized according to their permissions and accessibility.

  2. B

    It provides unified tools to create, maintain and manage multiple filesystems in a common way.

  3. C

    It defines a common internal structure of inodes for all compliant filesystems.

  4. D

    It is a distribution neutral description of locations of files and directories.

Show answer and explanation

Correct answer: D

Question 9 Single choice

What happens after issuing the command vi without any additional parameters?

  1. A

    vi starts and loads the last file used and moves the cursor to the position where vi was when it last exited.

  2. B

    vi starts and requires the user to explicitly either create a new or load an existing file.

  3. C

    vi exits with an error message as it cannot be invoked without a file name to operate on.

  4. D

    vi starts in command mode and opens a new empty file.

  5. E

    vi starts and opens a new file which is filled with the content of the vi buffer if the buffer contains text.

Show answer and explanation

Correct answer: D

Question 10 Single choice

Which of the following commands is used to change options and positional parameters for a running Bash?

  1. A

    history

  2. B

    set

  3. C

    bashconf

  4. D

    setsh

  5. E

    envsetup

Show answer and explanation

Correct answer: B