bash history date/time stamps

Submitted by admin on Tue, 01/08/2013 - 14:32

By default, the bash history does not keep tabs on the time of day that a given command was run. But it is really as simple as defining ONE environment variable: "HISTTIMEFORMAT"

This from "Linux by Example": HISTTIMEFORMAT takes format string of strftime. Check out the strftime manual to choose and construct the timestamp that suit your taste. My favorite is "%F %T ".


Upgraded to Drupal 7

Submitted by admin on Sat, 10/27/2012 - 19:06

I finally bit the bullet and upgraded the site to Drupal V7 - it was pretty straight forward, a few glitches here and there, but overall, pretty smooth. It was worth waiting a few years for the code to be nicely cleaned up :)

A BIG Thank You to all those clever people that contributed to the Drupal 7 experience - there is no doubt about it - it is a fantastic product.

A useful script for crontab (for all users) listings (let's see what running automagically...)

Submitted by donmc on Tue, 09/18/2012 - 19:19

I have been working on a system inherited from several earlier sysadmins, and you have to keep an eye out for cron jobs running for other users - so it's nice to be able to review them all in one hit - just run this on a command line as root:

for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done

Apache .htaccess -how to 301 redirect from a non-WWW to

Submitted by donmc on Mon, 08/06/2012 - 12:08

I have had to mess with this way too many times, so just for the record, here is what works for me:
[this based on an Apache/2.2.14 (Ubuntu) system...]

  RewriteEngine on
  # this is for sites using port 80:
  RewriteCond %{HTTP_HOST} ^ [NC]
  RewriteRule ^(.*)$$1 [L,R=301]

Chrome beats Internet Explorer out...

Submitted by donmc on Tue, 05/22/2012 - 03:54

Wow - it has happened...

The Chrome browser has for 1 full week edged out IE as the world's top browser.
That's BIG news for many different reasons, and shows just how persistent Google has been at pushing for a more open, standards-based browser solution.
I'd love to be a fly on the wall at the next Microsoft strategic planning session...