This is a simple way to get an email from a *nix command line that will test that emails can be sent. I’ve also set it up so that it tells you the name of the user who sent the email and the machine from which it was sent. The time and date is so [...]

Continue reading about How to test email from the command line on a *nix machine

admin on December 9th, 2008

I’m fed-up with forgetting the simple syntax for this!
useradd -c “<comment about user>” -d <home_directory> -m -s /bin/bash -g <primary_group> -G <secondary_groups, comma delimited> <user_id>

Continue reading about Creating a user in unix

admin on October 1st, 2008

Useful to set the title of an xterm:
export PROMPT_COMMAND=$`echo -ne “\\033]0;${LOGNAME}@${HOSTNAME}:${PWD}\\007″`
Set the prompt to something meaningful
export PS1=$’novella@$HOSTNAME:$PWD$ ‘
export PS2=$’> ‘
export PS4=$’+ ‘
Both seem to work on Linux and Solaris. (bash and ksh respectively).

Continue reading about *nix prompts - user@machine:directory