GAQM LCP-001 Exam Questions
Linux Certified Professional (LCP) Powered by LPI (Page 8 )

Updated On: 21-Feb-2026

Which of the following would do the same as the command cat < file1.txt > file2.txt?

  1. cat < file1.txt file2.txt
  2. cat file1.txt >file2.txt
  3. cat <file1.txt | file2.txt
  4. cat file1.txt | file2.txt
  5. cp file1.txt>file2.txt

Answer(s): B



What command is used to display a file in octal format?

  1. hexdump

Answer(s): A

Explanation:

/usr/bin/hexdump



You wish to execute two commands, one after the other. However, you only want the second command to execute if the first is successful.
Which character(s) do you put between the commands on the command line to accomplish this?

  1. &&

Answer(s): A



In the vi editor, which of the following commands will delete the current line at the cursor and the 16 lines following it (17 lines total)?

  1. 17d
  2. 17dd
  3. 17x
  4. d17d
  5. 16d

Answer(s): B



You wish to send the output of a command to standard output (stdout) and save it to a file. The command to use is ______________. (Do not specify arguments)

  1. tee

Answer(s): A






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

Join the LCP-001 Discussion