Useful commands for Terminal and Shell Script

find . -name index.html

find ./ -name "*.*" -exec grep -r -l -I "Content inside File"{} \;

ls -ld .?*

history -c

search for the location of additional document roots using grep. We’ll search in the /etc/apache2/sites-enabled directory to limit our focus to active sites. The -R flag ensures that grep will print both the DocumentRoot and the filename in its output:

grep -R "DocumentRoot" /etc/apache2/sites-enabled

👉 go to source