> ## Content Index
> Fetch the complete content index at: https://kudithipudi.org/llms.txt
> Use this file to discover other available public pages before exploring further.

# Terminal prompt – L[U]nix
- URL: https://kudithipudi.org/terminal-prompt-lunix/
- Published: 2004-01-31T07:44:34.000Z
- Updated: 2004-01-31T07:44:34.000Z
- Description: While browsing through the forums at ArsTechnica, I came across this posting. One of the poster had a pretty cool prompt on his terminal login screen....
- Author: admin
- Tags: Linux, Technology, Uncategorized, #wp, #wp-post, #Import 2026-08-23 02:32

While browsing through the [forums](http://episteme.arstechnica.com/?ref=kudithipudi.org) at [ArsTechnica](http://www.arstechnica.com/?ref=kudithipudi.org), I came across this [posting](http://episteme.arstechnica.com/eve/ubb.x?q=Y&a=tpc&s=50009562&f=96509133&m=7670937654&p=31&ref=kudithipudi.org). One of the poster had a pretty cool prompt on his terminal login screen. Here is the command he used to get that effect

| export PS1=”\\n\\\[\\e\[30;1m\\\]\[\\\[\\e\[35;1m\\\]0\\\[\\e\[30;1m\\\]\] \\\[\\e\[0m\\\]\\\[\\e\[36m\\\]\\h\\\[\\e\[37m\\\]:\\\[\\e\[34;1m\\\]\\w\\\[\\e\[30;1m\\\]$ \\\[\\e\[0m\\e7\\e\[1G\\e\[1H\\e\[1K\\e\[30;1m\[\\e\[33m\\j\\e\[30;1m\] \[\\e\[32;1m\\!\\e\[30;1m\] \[\\e\[36m\\u\\e\[30;1m\] \[\\e\[31;1m\\d\\e\[30;1m\] \[\\e\[35m\\@\\e\[30;1m\] \[\\e\[0m\\e\[36m\`uname -sr\`\\e\[30;1m\]\\e8\\\]” |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

Or if you are using Redhat, you can just edit the **/etc/profile** file and place the above command in it. So each time you log in to the system, you get this pretty cool prompt. I keep saying that it is cool :), but don’t give any explanation. I think a picture is due here…

![Terminal Prompt](http://www.kudithipudi.org/pics/1_31_2004/ssh_terminal_prompt.PNG)

For the initiated..you can come up with your own neat tricks by reading [this](http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/?ref=kudithipudi.org).