Created
June 27, 2012 20:17
-
-
Save ptasker/3006592 to your computer and use it in GitHub Desktop.
Useful Linux Commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Find text in files recursively and only display the file name | |
grep -H -r "search term" /filepath | cut -d: -f1 | |
# Search in file for term and color them in result | |
egrep -iw --color=auto 'user|group' /etc/httpd/conf/http |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment