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

  • Post author:
  • Post category:Q&A
  • Reading time:1 min read
  • Post last modified:March 15, 2025

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 the below link:

Linux Unhatched Assignments Assessment Exam Answers Full 100%