Category Archives: grep

Recursively Delete all files with names matching a Regular Expression

Logical Progression of building a command line trick So lets take this step by step… First list all the files Lets get a recursive list of all files in the current directory… 12$ find . …LOTS of files… Find filenames … Continue reading

Posted in find, grep, sed Tagged ,

Find out what process is listening on a particular port on a Linux server

I was recently trying to debug an app that had gone rouge on a server because of a PHP upgrade. It was a web based application listening on a particular port and after the upgrade it just returned 500 server … Continue reading

Posted in Command Line, grep, Server Administration, Web Servers Tagged , , , , , , ,

Find all .htaccess files with a particular php configuration setting

After some testing on a server with a strange setup I needed to find all of the .htaccess files that might contain a particular php configuration directive. The pattern was unique enough that I would have probably just done a … Continue reading

Posted in Command Line, find, grep, Linux, Server Administration, Web Servers Tagged , , , , , ,