Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

on windows I have command

title new title name

is it possible on Ubuntu?

share|improve this question

4 Answers 4

up vote 3 down vote accepted

In 10.04 go to Edit > Profile Preferences and select the "Title and Command" tab and change:

Initial title: any_title_you_like

When title commands set their own titles: Keep initial title enter image description here

share|improve this answer
1  
+1 for "Keep Initial Title" –  theTuxRacer May 2 '11 at 13:46

Use xtitle (not installed by default):

xtitle new title name
share|improve this answer
    
That did not work on Ubuntu 10.04. –  theTuxRacer May 2 '11 at 12:56
    
Works here on 10.04 after installing xtitle –  Florian Diesch May 2 '11 at 14:21
    
will it work with lxterminal? –  dsaint May 11 '11 at 15:17
    
I guess so. It uses a control sequence introduced by xterm and works with most terminal emulators I used so far - but I've never used lxterminal so I don't know for sure. –  Florian Diesch May 11 '11 at 16:08
    
This is the one I want but it doesn't seem to be working, at least under 11.04 - see askubuntu.com/questions/93185/… –  paxdiablo Jan 6 '12 at 1:25

Just click Terminal > Set Title in your Terminal.

share|improve this answer
  • Assuming that by title you mean the text shown in the Titlebar: If you use the gnome-terminal, you can goto Menu > Terminal > Title. It will ask you to set the title for the terminal. However, the name will be lost after you close the terminal.

  • Assuming you want to change the name@hosts:~$ bit because of a mis-spelling. Well, thats a wee lil' bit complicated. There are three parts to it, your username, your hostname, and the current directory. You can change the username by executing

    usermod --login NewUserName

    You can change the hostname by editing the contents of the /etc/hostname. Just type

    sudo nano --nonewlines /etc/hostname

    And third, your current directory environment variable will keep changing according to the well, current directory :p

share|improve this answer

Your Answer

 
discard

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.