Modify the. bashrc file in the user's home directorySet a new PS1 value that overrides the system's default valueExample: ps1= "[\[email protected] \w]\$"X Note: No spaces on both sides of the equals signThe usual escape characters and meanings are as follows:# \d: can display date format [day of week]# \h: Full host name# \h: Take the name of the hostname before the first decimal point# \ t: Display time,
Tags: script original round directory Mat code error REAC desMy original PowerShell script to share.Scripting Purpose: Lists files in a directory where all software signatures do not match.System requirements: Win7 + PowerShell 2.0 and above.#nd your file has been tampered with by hackers. PS1 the PS1 document should be saved as a Unicode document that contains the BOM header. #Enter a directory to verify t
I. Introduction of PS1PS1 the environment variable used to set the command prompt.The default PS1 content is:[\[email protected]\h \w]\$The default prompt is:[[email protected] ~]#[username @ hostname Path]# (#表示root, $ = Normal user)Second, set PS1Open:vim ~/.BASHRCAdded:ps1= ' [\e[31m\]\[email protected]\[\e[36m\]\h \w]\$\[\e[m\] 'Execution:source ~/.BASHRC\d: Represents the date, formatted as weekday month date, for example: "Mon-1"\h: The full hos
Real columns:My PS1 settings: (Each color change must add \] to end, otherwise it will appear the input long command does not wrap)Ps1= "[\[\e[1;31m\]\u\[\e[0m\]\[\e[1;33m\]@\h\[\e[0m\]\[\e[1;32m\] \w\[\e[0m\]] \\$"650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6C/6D/wKioL1VJjIHDi6SdAAIb4lirmm8333.jpg "title=" Secai.png "alt=" Wkiol1vjjihdi6sdaaib4lirmm8333.jpg "/>Set Format:Open \[\e[f; Bm\], c
Reference
Ubuntu Initial bash prompt color is the same as the program output color, when a large number of output, it is often difficult to find out where the output information began. If you turn the color of the prompt into a more eye-catching color, it's easy to locate the output information at the beginning.When you want to change the prompt color in bash, you can set it by the value of the PS1 variable, and if you put it in the. bashrc file in
[Email protected] ~]# echo $PS 1 # View the main prompt ~]# echo $PS 2 # View from the prompt ~]# export ps1= ' [\[email protected]\h \w]\$ ' # Set the main prompt (temporary), If you want to permanently take effect, you should write ~/.BASHRC\u # user name\h # host name\w # Current working directory\ t # time (HH:MM:SS)\$ # If the root user displays ' # ' otherwise displays ' $ 'Shell Features:
After you successfully log on to a text interface, in most cases,
You will see a flickering square or bottom line on the screen (depending on different versions ),
We call it a * cursor * (cursor ).
The cursor is used to tell you where the button
/English pronunciation symbol
/P // B/traditional international phonetic symbols
/P/is the pronunciation of P,/B/is the pronunciation of B. Blow-up consonants on the lips. When the pronunciation of his lips closed, hold off the gas, and then burst ash open, the air flow out of the mouth, a blow sound. /P/is the consonants, vocal cords do not vibrate;/B/is the Voiced Consonants, vocal cords vibration.
23-24
PS1 amp; #39; [/[/033 [01; 32 m/]/h:/[/033 [01; 34 m/]/W/[/033 [00 m/]/$ amp; #39; a simple explanation: the useful information in the question is: PS1 = amp; #39; [/h:/W]/$ amp; #39; /h display the current host name/W display the current directory/$ prompt [] in order to display the results as follows:
PS1 = '[/[/033 [01; 32 m/]/h:/[/033 [01; 34 m/]/W/[/033
MYSQL subquery and nested query optimization instance parsing, mysql nested instance Parsing
Query the highest score of the game history score of 100
SQL code
SELECT ps.* FROM cdb_playsgame ps WHERE ps.credits=(select MAX(credits) FROM cdb_playsgame ps1 where ps.uid=ps1.uid AND ps.gametag=ps1.gametag) AND ps.gametag='yeti3' GROUP BY ps.uid order by ps.credits
PS1 = '[/[/033 [01; 32 m/]/h:/[/033 [01; 34 m/]/W/[/033 [00 m/]/$'A brief explanation:The useful information is as follows:PS1 = '[/h:/W]/$'/H display the current host name/W display the current directory/$ Prompt[] For beautyThe result is as follows:[Taoyue: ~] $Add colors./[/033 [01; 32 m/]: The host name is green./[/033 [01; 34 m/]: the current directory is blue./[/033 [00 m/]: set the following color to the default value.
Other parts are color set
Desktop icons Click the right mouse button, select Properties, modify the working directory to your own git directory:Open quick Edit, when the left mouse button can randomly select text, enter key copy. The right mouse button is pasted. In addition, the pasted shortcut key is the Inerst keyTo modify the default window sizeIf you feel that your git bash is running slow, modify the GIT installation directory Etc/profile file contents, comment out the PS1
Article Title: linuxPS1 prompt definition. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Note:
Usage:
# PS1 = 'custom Content'
Note the single quotation marks on both sides.
Example: PS1 = '(\ u @ \ H \ d \ t) \ $'
Bytes ------------------------------------------------
. Color ConfigurationIn order to set the terminal color, we need to~/.BASHRCIn the filePS1variable to be customized. First open the file with the "gedit ~/.BASHRC" command and find the location of the PS1 variable:Figure 2 PS1 variables in the. bashrc fileThese lines of code believe that it is not difficult to understand, simply said: In the case of color mode open, the
Note:Usage:# PS1 = 'custom Content'
Note the single quotation marks on both sides.
Example: PS1 = '(\ [email protected] \ H \ D \ t) \ $'
Bytes ----------------------------------------------------------------------------------------------------------------
PS1: the user's usual prompt.PS2: the first line is not complete. Wait for the prompt entered in the second
We use the Linux system when the most contact is its command line window, many times we need to enter commands on the command line, before the input command will have a prompt, the general system default prompt form is: [[email protected] working directory]$.In fact, we can customize the command line prompt for ourselves, the Linux system prompt is defined by the system variable PS1, as long as the value of the PS
First of all, we need to understand the principles of vocal cords. The reason why vocal cords produce sound is that the breath impacts the vocal cords and the vocal cords produce vibration, that is to say, there is a direct relationship between the sound size and breath. A better use of breath can make our voice shine
self-observation. Make sure that the fingers are not moved !!!
Certificate ------------------------------------------------------------------------------------------------------------------------------------------------
Popular Singing Method I admire: Introduction and discussion of speech level singing in the United States(Originally written by lambauman's sister)Basic concepts of SLS:1. The so-called speech level singing means that the throat is stable, the throat is relaxed, and
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.