PuTTY Window Title Change
Most of the times we work with multiple linux/unix servers each having many environments like Development , Testing , Production and so on and accessing each of the server via PuTTY is a common phenomenon . Its really important to distinguish each session easily and one way for this is to have Putty window title as your Server Name ( or any Unique identifier for your Server ).
Below are the steps on how to do the same :
- Open Putty and click on New Session
- Enter your Host Name or IP i.e. the Server IP or Hostname to which you would like to connect
- Give this session a name in the text filed for Saved Sessions
- Now from Left Pane Select Window–>Behaviour
- Put a Name with which you would like to keep at the top of your putty session
- Now from Left Pane Select Terminal –> Features
- Check Disable remote-controlled window title changing (This step will keep the title set at step 5 visible in putty session even after you log in to the server)
- From Left Pane Click on Session
- Click on Save to save this server
- Now whenever you will open this configuration you will see Title which you set in Step 5 .
In case you do not want to keep this Title after you log in your putty session , do not perform Step 7 and then you will see remotely set title on your putty session which will be set by your Server administrator .
In Case you want to change the window title for all sessions i.e. who so ever open this server or if you want to set Remote Window title for this server then this can be done by following command
- Open .bashrc of your server
- Replace Window Title in below command with your title
- Keep PROMPT_COMMAND=’echo -ne “\033]0; Window Title \007″‘
- Save .bashrc file
- Close this putty session
- Reopen a putty session and after login you will see the Title you set as in step 3