Recently added to my current linux (RHEL6) .screenrc file as a time saver :

bindkey -t tgen stuff "tr -dc A-Za-z0-9_ </dev/urandom | head -c 8 | xargs^V^M"

So when I type “tgen” I get a random 8-digit password that I can use for initial passwords on user accounts.

About troyski

I'm a freelance UNIX engineer working in the UK. I'm married to Tina and between us we have six children. I'm a bit of an Apple fan boy, and all the Windows machines in the house are a thing of the past now.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Post navigation