[chris@myhost bin]$ If you were to change directories,

[chris@myhost bin]$ If you were to change directories, the bin name would change to the name of the new current working directory. Likewise, if you were to log in as a different user or to a different host, that information would change. You can use several special characters (indicated by adding a backslash to a variety of letters) to include different information in your prompt. These can include your terminal number, the date, and the time, as well as other pieces of information. Here are some examples: ! Shows the current command history number. This includes all previous commands stored for your user name. # Shows the command number of the current command. This includes only the commands for the active shell. $ Shows the standard user prompt ($) or root prompt (#), depending on which user you are. W Shows only the current working directory base name. For example, if the current working directory was /var/spool/mail, this value would simply appear as mail. [ Precedes a sequence of nonprinting characters. This could be used to add a terminal control sequence into the prompt for such things as changing colors, adding blink effects, or making characters bold. (Your terminal determines the exact sequences available.) ] Follows a sequence of nonprinting characters. \ Shows a backslash. d Displays the day, month, and number of the date. For example: Sat Jan 23. h Shows the hostname of the computer running the shell. n Causes a newline to occur. nnn Shows the character that relates to the octal number replacing nnn. s Displays the current shell name. For example, for this bash shell the value would be bash. t Prints the current time in hours, minutes, and seconds. For example, 10:14:39.
Note: If you are looking for cheap and reliable webhost to host and run your mysql application check mysql web server services.

Leave a Reply