Results 1 to 3 of 3

Thread: Linux find command help

  1. #1
    Join Date
    Aug 2008
    Beans
    573

    Linux find command help

    I am trying to find "php.ini". So I do the command:

    Code:
    find / "php.ini" 2>/dev/null
    It is giving me thousands of files that do not contain "php.ini". What am I doing wrong?

  2. #2
    Join Date
    Jun 2014
    Beans
    7,369

    Re: Linux find help

    Run the command:
    Code:
    php --ini
    This will output the information you want/need plus a number of additional ini files. The good news is the file you want is at the top of the output as shown in my Ubuntu 16.04 below which shows the first two lines of output of the command. . Yours of course, may be different.

    Code:
    Configuration File (php.ini) Path: /etc/php/7.0/cli
    Loaded Configuration File:         /etc/php/7.0/cli/php.ini

  3. #3
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    7,790
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Linux find command help

    Hi COKEDUDE.

    Try this:
    Code:
    find / -name "php.ini"
    Regards.

Bookmarks

Posting Permissions

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