It Does/DisplaysTimesaving Bonus Info\D{}Date and/or time in (Web hosting ecommerce) a
It Does/DisplaysTimesaving Bonus Info\D{}Date and/or time in a format of your choosingThe \Dmacro must be followed by a format string enclosed inbraces. bash interprets the format string by using the same rulesas the strftimelibrary function (see man strftimefor moredetails). If the format string is empty, the braces are still required, but bash chooses a display format appropriate to your locale. \eEscape character; used for complex stringsEscape characters introduce complex, unfriendly terminalcommand sequences. We show you a better way later in thistechnique. \hHost name up to the first .(dot)If you work on a number of different hosts from the same work- station, \hcan help you remember which one you re currentlyconnected to. \HEntire host nameSimilar to \h, but takes up too much screen real estate for ourtaste. \nNewline Use a new line to create a multiline prompt. \sShell name such as bash or cshWe ve never found a particularly good use for this one becausewe always stick to bash. \tCurrent time in 24-hour (HH:MM:SS) format\TCurrent time in 12-hour (HH:MM:SS) format\@Current time in 12-hour (am/pm) formatIs it 5:00 yet? \ACurrent time in 24-hour (HH:MM) format\uCurrent user nameInclude \uif you need to do work on someone else s behalf (inother words, if you re an administrator). That way you won t for- get who you are and send flaming e-mail using someone else sname! \WTrailing component of your current This is probably the most useful macro you could include in a working directorycustom prompt sort of a You Are Here sign. \wEntire current working directorySimilar to \W, but takes up a lot of room on your command line. \\Backslash character\!History numberEvery command that you execute is stored in a history log, andyou can refer to a specific command in the log by its history num- ber. Include the \!macro in your prompt, and you ll see the his- tory number assigned to each command. (We talk more abouthistory processing in Technique 9.) \$If the effective UID is 0, a #; otherwise a $The \$macro displays a pound sign (#) if you hold superuserprivileges or a dollar sign ($) if you don t. You can use the \$ macro to help you remember when you have enough privileges toseriously damage your system, but we show you a better way inthe section Seeing a Red Alert When You Have SuperuserPrivileges, later in this technique.
Please visit our professional web hosting services to find out about cheap and reliable webhost service that will surely answer all your demands.