Which of the following commands will return only lines that end with test?

  • grep ‘$test’ file.txt
  • grep ‘test$’ file.txt 
  • grep ‘^test’ file.txt
  • grep ‘test^’ file.txt

For more questions and answers go to below link:

Linux Unhatched Assignments Assessment Exam Answers 2020