LCP-001 Practice Test & Exam Dumps
Linux Certified Professional (LCP) Powered by LPI Questions 146–150 (page: 31)

Updated On: 19-Feb-2026

What command line redirection characters instruct the shell to read from the current input source until a specific word, on a separate line and without and trailing spaces, is reached?

  1. <<
  2. <l
  3. !<
  4. $<

Answer(s): A



Pressing the Ctrl-C combination on the keyboard while a command is executing in the foreground sends which of following signal codes?

  1. 1 (SIGHUP)
  2. 2 (SIGINT)
  3. 3 (SIGQUIT)
  4. 9 (SIGKILL)
  5. 15 (SIGTEPM)

Answer(s): B



Consider the following output:
prompt> myapp
[1]+ Stopped myapp
This output was the result of the user pressing the keyboard combination of the Ctrl key and what letter key? Enter only the single (1) letter as your answer

  1. z

Answer(s): A



What is the output when the following shell script executes? Cat <<foobar
Hello foobar foobar

  1. The contents of the file foobar
  2. Hello
  3. No output but a file named foobar is created
  4. Hello foobar
  5. Hello foobar

Answer(s): D



Which of the following commands will display the last 30 lines of /var/log/bigd.log as well as new content as it is appended to the file by another process?

  1. cut -30 -v /var/log/bigd.log
  2. head -30 -e /var/log/bigd.log
  3. tail -f -n 30 /var/log/bigd.log
  4. tac -30 /var/log/bigd.log
  5. cat -r -n 30 /var/log/bigd.log

Answer(s): C



Viewing page 31 of 60
Viewing questions 151 - 155 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!