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
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