Skip to main content

Timeline for How to change the prompt in Linux?

Current License: CC BY-SA 3.0

13 events
when toggle format what by license comment
Feb 14, 2021 at 8:16 comment added Avery Freeman Note: Was having trouble with $ not turning to #. Apparently in solaris /etc/profile PS1 UID marker must be escaped twice: \\$
Apr 2, 2019 at 1:19 comment added Peter Mortensen Yes, but how exactly? Can you provide some examples?
Jan 5, 2014 at 8:38 history edited derobert CC BY-SA 3.0
kill broken highlight.
S Sep 23, 2012 at 10:32 history edited Mat CC BY-SA 3.0
removed useless phrase; improved formatting; added meaning of \$; PS1 content was not consistent with displayed text
S Sep 23, 2012 at 10:32 history suggested user22304 CC BY-SA 3.0
removed useless phrase; improved formatting; added meaning of \$; PS1 content was not consistent with displayed text
Sep 23, 2012 at 10:30 comment added user22304 For details, see the PROMPTING section with man bash.
Sep 23, 2012 at 10:29 review Suggested edits
Sep 23, 2012 at 10:32
Apr 6, 2012 at 23:44 comment added tshepang By changing them, you can change.?
Apr 5, 2012 at 8:43 vote accept monu
Apr 5, 2012 at 7:39 comment added manatwork ~/.bashrc is not executed every time a user logs in. “When an interactive shell that is not a login shell is started, bash reads and executes commands from ~/.bashrc, if that file exists.” – man bash /INVOCATION
Apr 5, 2012 at 7:11 history edited pradeepchhetri CC BY-SA 3.0
added 175 characters in body
Apr 5, 2012 at 6:55 comment added Keith Don't forget to put it into your ~/.bashrc file also. e.g. `PS1="myname \\$ "'.
Apr 5, 2012 at 6:40 history answered pradeepchhetri CC BY-SA 3.0