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

admin on September 30th, 2008

If your terminal starts to misbehave e.g. not echoing characters etc.
Check current terminal values:
stty -a
Reset terminal to some sort of sane value:
stty sane

Continue reading about Terminal reset - *nix/Solaris