The command
find / -name ".htaccess" -print
prints out the directory for ".htaccess"
like this:
* explanation: '/' in the above command indicates the starting directory from which it will recursively search for the file
'/' is the ultimate starting point(route) in the whole directory, meaning it would search all the folders for the file
if you can narrow down your guess as to where the file might be located, you can be more specific in designating the starting directory
e.g.
find /var/www/ -name ".htaccess" -print
This means,
1) ignore other folders under '/' (imagine there are folders e.g. 'var', 'bin', 'home', etc...)
- because you know 'for sure' that ".htaccess" file does not exist there
2) begin searching for folders under '/var/www/' directory
- reference : stackoverflow
WRITTEN BY