I want to change the text /bin/bash to root@kali in the title of terminator and the terminal. How may I do this?

enter image description here


Executing this in your .bash_profile should do it:

echo -n "^[]2;root@kali^G"

Note the "^[" is escape.


To generate a configuration file , run:

terminator -l init;

edit the config file:

nano ~/.config/terminator/config

Add a new title for the window / terminal: e,g:

    cursor_color = "#aaaaaa"
      type = Window
      parent = ""
      title = "window title here"
      type = Terminal
      parent = window0
      profile = default
      title = "terminal title here"
      command = ""

Alternative way: Use Ctrl + Alt + w to set the window title and Ctrl + Alt + x to set the terminal title.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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