Asked by Jayleen Bocanegra on Jun 18, 2024

verifed

Verified

Which Linux command is used to search text or a specific file for lines that match a specific text string?

A) search
B) ls
C) apt-get
D) grep

Grep

A common Linux utility that searches output for a specified term.

Linux Command

Instructions or inputs typed into the terminal or shell of a Linux system to perform specific operations or tasks.

Apt-get

A command-line tool used in Debian and Ubuntu Linux distributions for handling packages, allowing users to install, update, and remove software.

  • Acquaintance with the procedures for installing operating systems and applications.
verifed

Verified Answer

ZK
ZAHRA KENGE MFUMUJun 20, 2024
Final Answer :
D
Explanation :
The grep command is used to search text or a specific file for lines that match a specific text string. It is a powerful tool that can search recursively through directories, search for multiple patterns at once, and can even be used with regular expressions. The other options (search, ls, apt-get) do not have the same functionality as grep for searching text.