A handy command to find a files location on a Linux machine
One of my old favorite commands to find a file on a Linux machine is the following:
find / | grep "somefile.ini"
It will use the find command along with grep to find all files matching "somefile.ini". If you want it not to be case-sensitive, you can add the -i option in front of the file name you are searching for. For example:
find / | grep -i "somefile.ini"
This example is searching from the root directory of your server. It will output all found matches to your terminal.
Comments
Post a Comment