Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Possible Duplicate:
What is $debian_chroot in .bashrc?
In Bash, why is PROMPT_COMMAND set to something invisible?

I logged into my computer from a normal user and executed the following command:

pratheep@pratheep-laptop:~$ echo $PS1
\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\$

I know that if I keep the value of PS1='\u@\h:\w\$ ' then also it will display the same.

I want to know what the extra thing in front i.e.
\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)} is for?

share|improve this question

marked as duplicate by Gilles, sr_, jw013, Michael Mrozek Feb 17 '12 at 4:43

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

this previously asked question might be of some help –  bdowning Feb 15 '12 at 14:05
this Bash PS1 "Cheat Sheet" will help explain the rest of the prefix. And, of course, The Bash Prompt HOWTO –  bdowning Feb 15 '12 at 15:34
The debian_chroot part is explained here –  Michael Mrozek Feb 15 '12 at 15:58
And the \[\e]0; ... \a\] part is explained here. –  jw013 Feb 17 '12 at 0:11

Browse other questions tagged or ask your own question.