Skip to main content

LCP-001 Real Exam Questions

Linux Certified Professional (LCP) Powered by LPI

289 questions available · Page 1 of 29

Updated Exam DumpsVerified AnswersPass Guarantee

Get Complete Exam Dumps
Question 1 Single choice

The command echo $!
will produce what output?

  1. A

    the process id of last background command

  2. B

    the exit status of the last command

  3. C

    the exit status of the last background command

  4. D

    the process id of the current shell

  5. E

    the name of the command being executed

Show answer and explanation

Correct answer: A

Question 2 Single choice

After a minor security incident you are instructed by your lead sys-admin to verify the RPM's installed on running system.

Which command will create a complete report which you can analyze for changes which may be security related?

  1. A

    .rpm-Va>report

  2. B

    rpm-Qavy > report

  3. C

    rpm-Vqt-- nomd5>report

  4. D

    rpm-checkfiles >report

  5. E

    rpm-Va-nofiles > report

Show answer and explanation

Correct answer: A

Question 3 Single choice

Which command is used to dump files in octal format?

  1. A

    od

  2. B

    octdump

  3. C

    dumpoct

  4. D

    cat -o

Show answer and explanation

Correct answer: A

Explanation

Answer A is correct. od command dump files in octal and other formats. Example: od test it will display the all contents of file in octal format.

Question 4 Single choice

Which of the following commands will print the first few lines of a text file to the shell?

  1. A

    cat -n 10 filename

  2. B

    dump -n 10 filename

  3. C

    head -n 10 filename

  4. D

    print -n 10 filename

Show answer and explanation

Correct answer: C

Question 5 Single choice

Which of the following commands can be used to locate programs and their corresponding man pages and configuration files?

  1. A

    locate

  2. B

    which

  3. C

    find

  4. D

    query

  5. E

    whereis

Show answer and explanation

Correct answer: E

Question 6 Fill in the blank

FILL BLANK

What option, when passed to the yum command, will update the entire system? (Specify ONLY the option name with no additional parameters)

Show answer and explanation

Accepted answer: update

Question 7 Single choice

You have not run apt-get on a system for some time, but it has been run on the system before.

What apt-get command would you run to download the latest list of packages, but not the packages themselves?

  1. A

    apt-get build-dep

  2. B

    apt-get mirror-select

  3. C

    apt-get update

  4. D

    apt-get upgrade

  5. E

    apt-get dist-upgrade

Show answer and explanation

Correct answer: C

Question 8 Single choice

The sticky bit is usually set on

  1. A

    /var/log

  2. B

    /tmp

  3. C

    /home

  4. D

    log liles

Show answer and explanation

Correct answer: B

Question 9 Multiple choice

Which TWO runlevels should never be declared as the default runlevel?

  1. A

    0

  2. B

    3

  3. C

    5

  4. D

    6

Show answer and explanation

Correct answers: A, D

Question 10 Fill in the blank

FILL BLANK

In a networked environment, what command will grant anybody permission to display their X applications on a desktop? (Include both the command and argument(s).)

Show answer and explanation

Accepted answer: xhost +