Can you search a directory for a string

Discussion in 'Site & Server Administration' started by mnymkr, Oct 26, 2009.

  1. #1
    I need to know how to search a directory and sub directory for strings

    basically i am tired of downloading whole folders and opening each file looking for functions
     
    mnymkr, Oct 26, 2009 IP
  2. SecureCP

    SecureCP Guest

    Messages:
    226
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What exactly are you looking for so I can give you an example?
     
    SecureCP, Oct 26, 2009 IP
  3. craiggy

    craiggy Active Member

    Messages:
    101
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #3
    try using the grep command.... I used it when I had to scan my servers domain files for files containing a trojan.... so I was scanning for a particular coded sequence... It worked great...
     
    craiggy, Nov 10, 2009 IP
  4. theapparatus

    theapparatus Peon

    Messages:
    2,925
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It would be helpful if we knew the specific OS you're trying to do this on.
     
    theapparatus, Nov 10, 2009 IP
  5. ravee1981

    ravee1981 Active Member

    Messages:
    712
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    60
    #5
    if its a linux server, you can use grep.
     
    ravee1981, Nov 16, 2009 IP