It's not my code, but I found it useful to know how many open connections per request I have on a machine to debug connections without opening another http connection for it. You can also decide to sort things out differently then the way it appears in here. Show Sample Output
This let you know which modules has loaded the Apache server, very useful to know if the mod_rewrite is ready to use. Show Sample Output
Raise your hand if you haven't used this at least once to share a directory quickly
Strip a password from a openssl key to use with apache httpd server
as unixmonkey7109 pointed out, first awk parse replaces three steps.
Grabs the Apache config file (yielded from httpd) and returns the path specified as DocumentRoot. Show Sample Output
Easiest way to check which modules are loaded in apache. Show Sample Output
Doesn't list connections to other ports than port 80. Not f.e. 8080 or 8091. Excludes programs listening for connections, like your favorite webserver.
list of all virtual hosts which are defined in all apache configuration files
Returns the number of running httpd processes Show Sample Output
this version is going to work on redhat/centos/suse AND ubuntu/debian systems Show Sample Output
It's not a big line, and it *may not* work for everybody, I guess it depends on the detail of access_log configuration in your httpd.conf. I use it as a prerotate command for logrotate in httpd section so it executes before access_log rotation, everyday at midnight.
commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for: