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
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>
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