Find Command Need Help
Hello all,
I need some help with the find command. I'm trying to find a name of a hosted web site on my Centos box. Something like xyz.com. I would like to search all files from the root down to see if 'xyz' is some here there and to display the results. I tried this 'find / -name xyz -print but it didn't work, no results displayed. I know for sure that xyz is there imbeded in some file. Thanks. |
Quote:
find / -iname "*xyz*" | less -------------------------- Steve Stites |
Or maybe
grep -i virtualhost `find /etc/ -name httpd.conf` |
ls -R / |grep xyz
Note that the -name option in find works on whole words only (or with a wild card) grep, however, matches the specified fragment |
Just a thought...
Hosted WEB site is probably virtual host described in httpd.conf. |
Thank you all, very helpful...
|
All times are GMT -5. The time now is 03:57 PM. |