Changing the Bash prompt
1 2 export PS1="\n\u@\H>"
I tried the above example on Ubuntu 7.10.
Reference:
Tip: Prompt magic [ibm.com]
Bash Prompt HOWTO [tldp.org]
DZone Snippets > jrobertson > ps1
13525 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
James Robertson http://www.r0bertson.co.uk
1 2 export PS1="\n\u@\H>"