Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

How can you rename windows in Ubuntu?

I have a few terminals open. All of them have the name "Untitled window". I would like to rename them similarly as you can in Screen by C-A A.

share|improve this question
@DavidCole Please, provide us a link to the duplicate thread in askubuntu. – Masi Feb 4 at 16:49
Please migrate this question to AskUbuntu where the help would be more appreciated and needed ;) This question was asked earlier – David Cole - Grammar Police Feb 4 at 16:53
up vote 2 down vote accepted

The process is a little complex to explain here since it is different for every shell you use. Rather I'll give you two links:

There are a few other things to take into consideration. For a one time change common to all terminal sessions, you may want instead to simply alter Bash (if you use bash and under gnome) icon and add --title=title under Gnome.

share|improve this answer

For terminal windows I set

PROMPT_COMMAND='echo -ne "\033]0;xterm${XUSER} $$ ${USER}@${HOSTNAME}:${PWD}\007"'

in .bashrc (if $TERM is xterm or rxvt) to get pid, pwd et all in the window title. Further set XUSER=/someTask to put task related info into the terminal window title.

share|improve this answer

You could install and use xttitle (Note the doubled t in the name). I use it like this in a file sourced by my ~/.bashrc:

# from the "xttitle(1)" man page - put info in window title
    [ $TERM = xterm -o $TERM = xterm-color ] && xttitle "[$$] ${USER}@${HOSTNAME}:$PWD"

    [ -z "$*" ] && builtin cd $HOME
    [ -n "$*" ] && builtin cd "$*"

I also do this:

xttitle Mutt && mutt
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.