To display all files containing specific text, you need to fire some commands to get output. lets see which would be helpful.
You can use “grep” command to search string in files. Alternatively, You can also also use the "find " command to display files with specific string.
Syntax is:
grep -rwl “search-string” /path/to/serch/dir
Lets See examples,
grep -rlw "tecadmin" /var/log
/var/log/lfd.log
/var/log/cloud-init.log
/var/log/messages-20170226
/var/log/audit/audit.log.1
/var/log/btmp-20170315
/var/log/httpd/access_log-20170226
Hope this answer help you.
To learn more about Linux, enroll in Linux administration course online today.
Thanks.