date and time in promt
i want todays date and time in my promt
how can i get it if anyone throw some light on it it would be helpful for me thanks |
just type date in console: see "man date" for details.
|
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. |
For more of the same (and a thorough explanation of it all) check out this tutorial .
|
thanks a lot i got my answer
can u also ive me the info about the itme in milliseconds |
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. |
promt works
thanks boss u have given me the accurate answer
i am really gratefull to read all that thanks agian |
shell with image background
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 |
All times are GMT -5. The time now is 04:01 AM. |