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:
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
Broken vow
By Lara Fabian
Tell me her name
I want to know
The way she looks
And where you go
I need to see her face
I need to understand
Why you and I came to an end
Tell me again
I want to hear
Who broke my faith in all these years
Who lays with you at night
When I'm here all alone
Remembering when I was your own
I'll let you go
I'll let you fly
Why do
The old rules involve two emotions:
A few years down, the project one after another, just finished a project, evening off work do not know what to do, want to relax and do not know where to go. Grab a book on a company's bookshelf, "Economics of a lesson," start looking, scratching your legs while you look. (When writing this sentence, kill two mosquitoes).
Gump
The second chapter of the Book Broken window fallacy read the feeling harvest a lot, the
Advanced Bash-scripting Guide (15th): Test broken link files (broken link ),
The example selected in this article is from the book "Advanced Bash-scripting Gudie", translated by Yang chunmin Huang Yi
1 #/bin/bash 2 # use a pure shell script to find the bad link file 3 # What is broken link? For a symbolic link (soft link), if you first Delete the original file, i
List-unidirectional linked list uva 11988 broken Keyboard (a.k.a.beijiu text) (broken keyboard (tragic text))
The new C + + 2011 Standard C++11 Adds the Forward_list,forward_list design goal to achieve comparable performance with the best handwritten unidirectional linked list data structures. Random access is not supported, no size operation. However, this container is very good in engineering, in
Problem:
A rock will be broken when it is dropped at a certain height. It will not be broken below the height, but it must be broken above the height. Now there are 4 stones and a 1000-storey building. The height of the broken stone needs to be determined. The minimum number of times can be tested.
Analysis:
We should
Originally I intend to open a separate chapter, specifically to explain the sticky bag and broken bag, but I think this thing I am doing is a headache, but for others may not be so important, so write it here.So what is a sticky bag or a broken bag?
Sticky pack: We know that the client writes the message to the server, the first thing to write to buffer, in Bytebuffer for example, if you buffer is
what is the risk of broken screen?
Broken Screen Insurance is a new launch of a service, popular, that is, for your mobile phone screen to buy insurance, when the phone because of accidental fall, resulting in screen damage, Alipay will be the full compensation for you, will you replace the new screen for free.
Notice to pay for the risk of broken screen
1,
The socket on the bathroom wall is broken. In fact, it has been broken down for several months.
I live in a rented apartment. Two years ago, when I first moved in, everything was normal. One day later, I found that the protruding part of the socket fell half, and the metal Jack was exposed. If it breaks down, there are other sockets in the house. In this case, each time I had to endure the inconvenience of
classnotfoundexception {// first checks whether the message length in the current buffer is complete. If the message length is incomplete, if (! Prefixeddataavailable (4) {Throw new bufferunderflowexception ();} // message length int length = getint (); If (length
4.3 handling of broken packets and stick packets
// Class cumulativeprotocoldecoder public void decode (iosession session, iobuffer in, protocoldecoderoutput out) throws exception
Today, a strange thing happened: After I took a man's call, the call broke when I got on. It's so strange that the phone call will automatically be hands-free, and the other party won't hear me.
I don't mind if I can't hear my voice, but I do mind if I don't know how easy it is. Everyone can hear me on the phone! In case of an affair with someone, you may have a crush. This basic skill is not something that everyone can do. It cannot be used by others. Of course, I only have a crush on girls.
Adding broken glass effects is a fun way to get people's attention and interest. The visual effects of broken glass are very shocking, vibrant and conflict-filled. Creating it is full of technical challenges, is difficult and time-consuming, it's also not easy task! Here, I will show you a good way to teach you how to create a broken glass brush in Adobe Photosho
yesterday on the Internet, with the brothers to discuss the effect of clicking the screen broken, today simply take out time to tidy up, very simple Austrian,Basic idea: 1. Customize a view to show the broken effect 2. Add this view to the activity by Setcontentview (view); 3. Be careful to set the activity's theme to Android:theme= "@android: Style/theme.translucent.notitlebar" so that it will be more eff
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.