Solved

Linux, finding files that contain a string

Posted on 2014-03-26
1
468 Views
Last Modified: 2014-03-26
For linux, RHEL dist

From a directory structure like the following

    /first/second/third

I want to go to /first

and then find all files that contain the word 'TEST.TEST'

What command would I use to do this.  Could someone please post an example?
0
Comment
Question by:Anthony Lucia
1 Comment
 
LVL 19

Accepted Solution

by:
simon3270 earned 500 total points
Comment Utility
Finished you Computer Security class?  :-)

The standard UNIX/Linux command for retrieving files in a directory tree is "find".  The man page will show its use.  It can run commands on the files it finds, so your usual text search command should be fine.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now