LCP-001 Practice Test & Exam Dumps
Linux Certified Professional (LCP) Powered by LPI Questions 151–155 (page: 32)

Updated On: 19-Feb-2026

You wish to kill a process with a PID of 123. Select the command which will allow the process to "clean up" before exiting.

  1. kill -1 123
  2. kill -9 123
  3. kill -15 123
  4. kill -17 123

Answer(s): C



Which of the following commands will change all CR-LF pairs in an imported text file, userlist.txt, to Linux standard LF characters and store it as newlist.txt?

  1. tr '\r\n' '' < userlist.txt > newlist.txt
  2. tr -c '\n\r' '' < newlist.txt > userlist.txt
  3. tr -d '\r' < userlist.txt > newlist.txt
  4. tr '\r' '\n' userlist.txt newlist.txt
  5. tr -s '^M' '^J' userlist.txt newlist.txt

Answer(s): C



Which of the following commands will find the string foo in the file filel.txt, regardless of foo being in upper or lowercase letters?

  1. cat file1.txt | grep -i foo
  2. cat file1.txt > grep -n foo
  3. grep -i foo | file1.txt
  4. grep -n file1.txt < foo
  5. grep -n foo file1.txt

Answer(s): A



The command used to determine a file's type is

  1. type
  2. find
  3. file
  4. ls

Answer(s): C



Many people like the vi text editor but the default bash command line editor recognizes emacs keystrokes.
What command entered into abash initialization file will have bash recognize vi keystrokes after login?

  1. history -p vi
  2. alias emacs=vi
  3. HISTCMD=vi
  4. set -o vi
  5. unset emacs

Answer(s): D



Viewing page 32 of 60
Viewing questions 156 - 160 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!