GAQM LCP-001 Linux Certified Professional (LCP) Exam Practice Test

Page: 1 / 14
Total 289 questions
Question 1

Which of the following commands enables the setuid (suid) permission on the executable called /bin/foo?



Answer : B


Question 2

Which of the following shell redirections will write standard output and standard error output to a file named filename?



Answer : B


Question 3

Which option to the tee command will cause the output to be concatenated on the end of the output file instead of overwriting the existing file contents?



Answer : A


Question 4

You are writing text in vi. Now you want to save your changes and exit. Which TWO sequence of inputs will accomplish this?



Answer : A, D


Question 5

In the vi editor, which of the following commands will copy the current line into the vi buffer?



Answer : D


Question 6

When should grep -F or the fgrep command be used to search the content of text files?



Answer : C


Question 7

Which of the following commands will print the first few lines of a text file to the shell?



Answer : C


Page:    1 / 14   
Total 289 questions