How To Search Files on Linux

April 2nd, 2011

Couple commands to make your Linux file searching life easier:

Find the text inside all files of /var/www/html/ directory:
grep “search_term” /var/www/html/*.*

Find all files in /var/www/html/ directory created within last (x) days:
find /var/www/html -mtime -x -print


Entry Filed under: English Blog

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Search

Calendar

April 2011
M T W T F S S
« Mar   May »
 123
45678910
11121314151617
18192021222324
252627282930  

Posts by Category

Posts by Month


Latest Posts

Interesting Websites:

Most Recent Posts

Syndication

Management

Stats:
eXTReMe Tracker