How to find file with name="php.ini" on linux using grep command ? Can anybody show me ?
You would normally use
If you must use grep
In both cases replace "/" with the absolute or relative path for the directory you wish to start the search in.
Note that linux also has a
Just to add some more information...
find / -name php.ini cd /; ls -lR | grep php.ini
of course do work, but you could be better served with
which uses the indexed filesystem database to locate the file. It is considerably faster. To update the filesystem index, the command is:
These however required root as far as I remember.
disclaimer: I have not used linux for years for anything meaningful... I learnt these back then when the predominant distribution was slackware, and debian potato was not even out...