I know and use Perl and Bash fairly regularly with automating system administration tasks. Lately, I’ve been putting some effort into learning python, as I believe that it will help me grow in my career. I’ve been using Learn Python the Hard Way. So far, it’s been a pretty awesome site! I need to think of some projects to continue to increase my capabilities with it. Maybe, I’ll post some code examples as I create some projects. Either way, check out the site. It’s pretty awesome!

Share on FacebookTweet about this on TwitterShare on LinkedInShare on RedditEmail this to someone

Make this script run when ever a user logs into their system and watch them freak out as it tells them that all their commands aren’t found. :)

#!/bin/sh

h=`hostname | cut -d . -f 1`;
u=`id -un`;
shell="[$u@$h ~]$";

while true;
do
        echo -n "$shell "; read cmd;
        echo "bash: $cmd: command not found...";
done;

 

Share on FacebookTweet about this on TwitterShare on LinkedInShare on RedditEmail this to someone