Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
In the users home directory there is a file called .bashrc (~/.bashrc). In that file, there is a line which begins 'PS1='. It may look something like this:
PS1="\[\033[31;1m\]\u]".
Edit that line to look like this:
PS1="\[\033[31;1m\]\u \d \t]"
or like this
PS1="\[\033[31;1m\]\u \d \T]".
\t will display time in 24-hour format; \T will display in 12-hour format.
Sorry, gave you the wrong like just then. It should have been: Bash Prompt HOWTO . If you check out chapter 4.2 it'll tell you how to use the 'date' command inside a prompt description. 'man date' will tell you the option you need for miliseconds...
If you still can't figure it out, post what you did get and ask again.
fine its all working
now suppose i want some image in background of my Konsole or shell
is it possible if it is tell me how
i think someone must know that
check out the preferences (it's in one of the sub-menus, probably under edit - not at my linux box right now)
I know for a fact you can select a solid color, gradients and transparency. That being possible, I imagine an image is possible too. Keep it simple though, because too much eye-candy will make it really hard to read the shell
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.