GAQM Linux Certified Professional (LCP) Powered by LPI LCP-001 Dumps in PDF

Free GAQM LCP-001 Real Questions (page: 38)

What is the disadvantage of using the command kill -9 ?

  1. A core dump file will be created.
  2. It affects the entire process group.
  3. It makes excessive use of system resources.
  4. The action can be blocked by buggy or malicious processes.
  5. The affected process is unable to clean up before exiting.

Answer(s): E



To prevent a command run as root from sending both standard out (stdout) and standard error (stderr) to any terminal or other file or device, which of the following strings should be appended to the command?

  1. >/dev/null
  2. >/dev/null 1>&2
  3. >/dev/null 2>&1
  4. 1>&2 >/dev/null
  5. 2>&1 >/dev/null

Answer(s): C



You want to search the file myfile for all occurances of string containing at least five characters, where character number 2 and 5 are 'a' and character number 3 is NOT 'b'.
Which command would you use?

  1. grep a*^b*a myfile
  2. grep .a[^b].a myfile
  3. grep .[a].*.[a] myfile
  4. grep .a*^b..a myfile

Answer(s): B



What does the following command do? cat '$TEST'

  1. Displays a bash syntax error message.
  2. Displays the contents of the file named $TEST if it exists.
  3. Waits for the user to enter text and then echos the text back.
  4. Displays the contents of the file named inside the back quotes.
  5. Displays the contents of the named by the environment variable TEST.

Answer(s): B



You want to the command foo to take its input from the file foobar and send its output to the program bar.
Which of the following command lines will do this?

  1. foo < foobar | bar
  2. foo < foobar > bar
  3. foo | foobar > bar
  4. foo | bar < foobar
  5. foo > bar < foobar

Answer(s): A



Which of the following commands would display the lines containing capital letters form the file "turkey.txt"?

  1. cat turkey.txt|wc -|
  2. grep -n [A-Z] turkey.txt
  3. cat turkey.txt|wc -w [A-Z]
  4. grep -v [A-Z] < turkey.txt
  5. for [A-Z] in turkey.txt | count

Answer(s): B



In Bash, inserting "1>&2" after a command redirects

  1. standard error to standard input
  2. standard input to standard error
  3. standard output to standard error
  4. standard error to standard output
  5. standard output to standard input

Answer(s): C



Identify the proper device for the third partition, on the second hard disk, on the first IDE controller on a PC system.

  1. /dev/hdb3
  2. /dev/hd1b3
  3. /dev/hdc1b3
  4. /dev/hdc1d2p3

Answer(s): A

Explanation:

Harddisk Recognization Primary Master /dev/hda Primary Slave /dev/hdb Secondary Master /dev/hdc Secondary Slave /dev/hdd According To question, Device name is /dev/hdb and paratition number is 3. /dev/hdb3



Share your comments for GAQM LCP-001 exam with other users:

P
Puneeth
10/5/2023 2:06:00 AM

new to this site but i feel it is good

A
Ashok Kumar
1/2/2024 6:53:00 AM

the correct answer to q8 is b. explanation since the mule app has a dependency, it is necessary to include project modules and dependencies to make sure the app will run successfully on the runtime on any other machine. source code of the component that the mule app is dependent of does not need to be included in the exported jar file, because the source code is not being used while executing an app. compiled code is being used instead.

M
Merry
7/30/2023 6:57:00 AM

good questions

V
VoiceofMidnight
12/17/2023 4:07:00 PM

Delayed the exam until December 29th.

U
Umar Ali
8/29/2023 2:59:00 PM

A and D are True

V
vel
8/28/2023 9:17:09 AM

good one with explanation

G
Gurdeep
1/18/2024 4:00:15 PM

This is one of the most useful study guides I have ever used.

AI Tutor 👋 I’m here to help!