Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Whenever I connect to production server using ssh from my terminal, is there any way to automatically change the appearance of the Ubuntu terminal with special color so that I don't execute some stupid commands thinking that I am running in my local system?

share|improve this question

Best way would be to reverse the prompt, so it is easily seen, that you're on a different system:

 PS1="$(tput rev)$LOGNAME@$(uname -n)>$(tput sgr0)> "
share|improve this answer

If you're using Gnome Terminal, you can create different profiles for different purposes using File->New Profile.... Each profile can have their own terminal title, custom command, colors, background and other settings.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .