LCP-001 Practice Test & Exam Dumps
Linux Certified Professional (LCP) Powered by LPI Questions 91–95 (page: 20)

Updated On: 19-Feb-2026

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. .rpm-Va>report
  2. rpm-Qavy > report
  3. rpm-Vqt-- nomd5>report
  4. rpm-checkfiles >report
  5. rpm-Va-nofiles > report

Answer(s): A



You are compiling some software from source. After running ./configure with the appropriate arguments and no errors, what is the next command to run?

  1. make

Answer(s): A

Explanation:

The purpose of the make utility is to determine automatically which pieces of a large program need to be recompiled, and issue the commands to recompile them. example C programs, since they are most common, but you can use make with any programming language whose compiler can be run with a shell command. In fact, make is not limited to programs. You can use it to describe any task where some files must be updated automatically from others whenever the others change. To prepare to use make, you must write a file called the makefile that describes the relationships among files in your program, and the states the commands for updating each file. In a program, typically the executable file is updated from object files, which are in turn made by compiling source files.



You have two shell scripts, foo and bar. You wish to have bar execute if foo returns an exit status of 0 Select the correct command:

  1. foo; bar
  2. foo || bar
  3. foo && bar
  4. foo % bar

Answer(s): C

Explanation:

Logical AND Operator || ?Logical OR Operator ! ?Logical NOT Operator Correct Answer is C because first tried to execute foo. If foo executes without any error then executes bar. If any error occurs in foo then exit from command.



In order to append the output of ls to a file called bazz, which of the following command lines would you use?

  1. ls > bazz
  2. ls >& bazz
  3. ls &> bazz
  4. ls >> bazz

Answer(s): D

Explanation:

The correct answer is `ls >> bazz' because it is appended.



Which command is used to dump files in octal format?

  1. od
  2. octdump
  3. dumpoct
  4. cat -o

Answer(s): 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.



Viewing page 20 of 60
Viewing questions 96 - 100 out of 289 questions


Post your Comments and Discuss GAQM LCP-001 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!