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

I know there are options to start a new terminal with a specified title, and that is is possible to change the title from a terminal using the menu: 'Terminal' -> Set Title.

However, I want to change it for a current terminal from command line. How can I change the title for an existing Gnome terminal from command line?

share|improve this question

migrated from Mar 12 '12 at 14:43

This question came from our site for professional and enthusiast programmers.

up vote 12 down vote accepted

Output a suitable xterm escape sequence.

echo -ne '\033]0;New title\007'

See also How to change the title of an xterm.

share|improve this answer
Thanks, will try this tomorrow! – Sander Mar 12 '12 at 22:11
Perfect, thats it! :D Also, thanks for the very interesting link. – Sander Mar 13 '12 at 15:26
@tripleee: Usually it's recommended to use tput commands to print such escape sequences, as mentioned in this exact duplicate. – l0b0 Mar 21 '12 at 8:27
@triplee Thanks for the input! However I don't consider this question as an exact duplicate of the one you mentioned. The context of the other question is very different. – Sander Feb 13 '13 at 10:02
This no longer seems to work – kapad Jul 29 '13 at 14:19

If you need to set it to the hostname where you are logged into you can use:

echo -ne "\033]0;${HOSTNAME}\007"
share|improve this answer

It might be worth your while to try KDE. It has tabbed terminal windows, and each tab can be named just by right clicking on the tab.

share|improve this answer
Thanks for your suggestion, however, I'm still fond with Gnome :) – Sander Mar 12 '12 at 22:10

You must log in to answer this question.

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