Results 1 to 4 of 4
  1. #1

    Find all files per type on a server???

    I have root and want to know how to search for a particular file type throughout the server.

    Similar to the DOS command line:

    dir/s *.exe ----> for example would find all exe files

    Thanks.
    SuperWebHost.com, a Digitally Justified Company
    Celebrating our 9th year in Business

    Proudly Hosting with CANADIAN bandwidth
    Managed Hosting, Multi-Domain Hosting, Colocation, Merchant Accounts

  2. #2
    locate *.exe | more

    Or if want to search for a specific file and where it's located for
    example http.conf then type:

    locate httpd.conf

    If you want to view the file use "cat" before the file.

    Regards.
    WHO AM I? CLICK HERE!

  3. #3
    Join Date
    Feb 2002
    Location
    Vestal, NY
    Posts
    1,381
    You can also try the "find" command ("man find"). It does not use the slocate database so you don't need to run updatedb before searching.
    H4Y Technologies LLC .. Since 2001!!
    "Smarter, Cheaper, Faster" - SMB, Reseller, VPS, Dedicated, Colo hosting done right.

    ZERO PACKETLOSS, ZERO DOWNTIME Dedicated and Colo - USA: IA, CA, NC, OR, NV
    **http://h4y.us** **http://iwfhosting.net**
    Voice: (866)435-5642. *** askus at host4yourself d0t com

  4. #4
    Join Date
    Aug 2002
    Posts
    35
    Why not echo the results into a file?

    cd && locate -i *.php > ./phpsearch.txt

    i = ignore-case ...so PHP will show up also.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •