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

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

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:

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!