We all know that in bash, you can change the color of the prompt by PS1 variables. When the command output is long, it is often not easy to see where the output begins at the first glance, change the PS1 variable by changing it, you can change the color of the bash prompt so that you can look at the crowd and find where the output begins. Also, setting colors can make the command line more beautifulWe can c
The. ps1 file is a script file written by PowerShell. In Windows systems, it is not allowed to execute. ps1 files by default, so how can you allow the system to execute. ps1 files?What is the. ps1 file?This is the script text that PowerShell writes, you can write a PowerShell code in Notepad, then save it as "Xxx.ps1",
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:
Operating Environment:
System: Mac 10.12
Editor: Vim
One, no brain configuration:1. Open the Midrange input:VI ~/.bash_profile2. Open and edit the. bash_profile file:Press keyboard "I" to enter edit modeCopy the following code:Export clicolor=1export PS1="Press esc--"W" and press "Q"--"restart terminal--" complete!Second, advanced operation:Escape characters:The above example uses a backslash-escaped sequence of characters to notify
Bash inside the variable PS1 is the user's usual prompt, the system defaults to [[email protected] working directory]$. For more information about PS1, see: http://www.cnblogs.com/starspace/archive/2009/ 02/21/1395382.htmlIn the article, it is introduced that the PS1 modification is required to be written to the ~/.bash_profile in the restart, but this is for the
The meaning of the prompt in the PS1 variable:\d: Represents the date, in the format weekday month date, for example: Wed Dec 12\h: Full host name. For example: hostname is debian.linux\h: Take the first name of the host only, as in the example above, then the debian,.linux is omitted \ t: Display time in 24-hour format, such as: hh:mm:ss\t: Display time 12 hours format \a : Display time is 24 hours format: hh:mm\u: The current user's account name suc
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
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
Brief introduction
How to easily parse HTML code in PHP is an estimate of the problems that every phper will encounter. With Phpquery, PHP can be used to handle HTML code as easily as jquery.
Project Address: https://code.google.com/p/phpquery/
GitHub Address: Https://github.com/TobiaszCudnik/phpquery
DEMO
Download Library files: https://code.google.com/p/phpquery/downloads/list
I'm under the OneFile version: Phpquery-0.9.5.386-onefile.zip
Official demo:https://code.google.com/p/phpquery/source
Parse the HTML code with phpquery like jquery, Phpqueryjquery
Brief introduction
How to easily parse HTML code in PHP is an estimate of the problems that every phper will encounter. With Phpquery, PHP can be used to handle HTML code as easily as jquery.
Project Address: https://code.google.com/p/phpquery/
GitHub Address: Https://github.com/TobiaszCudnik/phpquery
DEMO
Download Library files: https://code.google.com/p/phpquery/downloads/list
I'm under the OneFile version: Phpquery-0.9.5.386-onefi
PhpQuery makes it as convenient for php to process html code as jQuery, and phpqueryjquery. PhpQuery makes php processing html code as convenient as jQuery. phpqueryjquery describes how to easily parse html code in php. it is estimated that every phper will encounter problems. PhpQuery allows php to process html code as conveniently as jQuery. phpqueryjquery
Introduction
How to easily parse html code in php is probably a problem for every phper. PhpQuery makes it as convenient for php to proces
This article mainly introduces phpQuery, which makes it as convenient for php to process html code as jQuery. For more information, see
Introduction
How to easily parse html code in php is probably a problem for every phper. PhpQuery makes it as convenient for php to process html code as jQuery.
Project address: https://code.google.com/p/phpquery/
Github address: https://github.com/TobiaszCudnik/phpquery
DEMO
Download library file: https://code.google.com/p/phpquery/downloads/list
I'm using one
This article mainly introduces phpQuery, which makes it as convenient for php to process html code as jQuery. For more information, see
Introduction
How to easily parse html code in php is probably a problem for every phper. PhpQuery makes it as convenient for php to process html code as jQuery.
Project address: https://code.google.com/p/phpquery/
Github address: https://github.com/TobiaszCudnik/phpquery
DEMO
Download Library File: https://code.google.com/p/phpquery/downloads/list
I'm using one
Use phpQuery to parse html code like jquery, phpqueryjquery. PhpQuery parses html code like jquery. phpqueryjquery describes how to easily parse html code in php. it is estimated that every phper will encounter problems. With phpQuery, php can use phpQuery to parse html code like jquery, phpqueryjquery
Introduction
How to easily parse html code in php is probably a problem for every phper. PhpQuery makes it as convenient for php to process html code as jQuery.
Project address: https://code.googl
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.