Original address: http://www.cyberciti.biz/faq/bash-shell-change-the-color-of-my-shell-prompt-under-linux-or-unix/
-----------------
BASH Shell:change The Color of my Shell Prompt Under Linux or UNIX by VIVEK Gite on October 6, 2006
How does I change the color of my shell prompt under Linux or Unix operating systems?Can change the color of your shell prompt to impress your friend or to make your own life quite easy while working at The command prompt. BASH Shell is the default under Linux and A
records the number of commands in the command line history file. Default is 500
HOME home directory. When no directory is specified, the cd command will go to that directory
IFS internal field delimiters, usually space, tab, and line break, used for field substitution of words generated by command substitution, looping through tables in tables, and read input
LANG is used to determine the locale class for types that are not explicitly selected for variables that begin with LC_
OLDPWD Previous w
Failure analysis: From the phenomenon, the USB device and motherboard interface are not damaged, suspected because of accidental power failure caused system setup error.
For this situation is generally due to power supply problems, because the USB hard drive in the work de time to consume a certain amount of electricity, directly through the USB interface to take electricity, there may be a shortage of power supply. As a result, almost all mobile drives come with a separate de external power su
drive, and copy the 4 files from the 02/packages folder to the 9G hard drive/system/installation/packages (new Folder
Osinstall.mpkg, Osinstall.pkg, Simplifiedchinese.pkg, traditionalchinese.pkg, and must put Mach_ Kernel is copied to BASESYSTEM-HFS.DMG's 9G hard drive to start the Mach_kernel. (Due to DP3, BASESYSTEM.DMG has no built-in mach_kernel)
08. (option) Remove the/system/library/extensions/of the 9G hard drive
Appleintelcpupowermanagement.kext and
Appleintelcpupowermanagementclien
electricity, it is likely to appear power supply. As a result, almost all mobile drives come with a separate external power supply or a PS2-turn interface that is powered by a keyboard. At this time as long as the prior connection to the external power supply or through the PS2 to connect with the keyboard, to ensure that the mobile hard disk to provide enough power after the test, then should be normal us
)Class.forName (String): Loads the class and performs class initialization; the second parameter can be Class.forName (string, Boolean, ClassLoader) to simply load a class without initializing;Classloader.loadclass (String): Loads the class only, does not perform class initialization; PS2: Sometimes you see this usage:Class.forName ("Com.mysql.jdbc.Driver"). newinstance ();This is not necessary, as described above, static initialization has been new t
(string)Class.forName (String): Loads the class and performs class initialization; the second parameter can be Class.forName (string, Boolean, ClassLoader) to simply load a class without initializing;Classloader.loadclass (String): Loads the class only, does not perform class initialization; PS2: Sometimes you see this usage:Class.forName ("Com.mysql.jdbc.Driver"). newinstance ();This is not necessary, as described above, static initialization has be
connection with 163.com ping 202.96.128.68 # test and IP 202. 96.128.68 connection supervisor probe rtl8139 # Check whether the driver rtl8139.o works properly lsmod # Show the mounted driver insmod rtl8139.o # load the driver rtl8139.oinsmod sb. o io = 0x280 irq = 7 dma = 3 dma16 = 7 mpu_io = 330 # load the driver and set the relevant irq, dma parameter rmmod rtl8139 # Delete the driver module gpm-k named rtl8139 # Stop the mouse service gpm-t ps2 i
.
Prompt
Bash has two levels of prompt. The first-level prompt is often seen when Bash is waiting for command input. The default value of the first-level prompt is the $ symbol. If you do not like this symbol or want to define a prompt, you only need to modify the value of the PS1 variable. For example, change it:
PS1 = "Enter a command :"
The second-level prompt is displayed when you need to enter more information for Bash to execute a command. The second-level prompt is> by default
1. Concepts
Singleton mode: it is designed to ensure that a class has only one instance and provides a global access point for it. This instance is shared by all program modules.
[Cpp]Class CSingleton{// Public static method to obtain the instancePublic:Static CSingleton * GetInstance (){If (m_pInstance = NULL) // determines whether the first call is successful.M_pInstance = new CSingleton ();Return m_pInstance;}// Private constructor to prevent instantiationPrivate:CSingleton (){};// Private St
(a)Class Shape {public: virtual void draw () const = 0; virtual void error (const string msg); int ObjectID () const; }; Class Rectangle:public Shape {...}; Class Ellipse:public Shape {...};The concept of public inheritance seems simple. It seems very easy to surface. However, after careful examine, we will find that the concept of public inheritance actually consists of two interdependent parts: the inheritance of function interfaces and the inheritance of function implementations.
The Linux operating system is designed to be open-source and free. Ubuntu should be a very good Linux release for domestic users. Most of the software we use in Windows is basically available in Linux, adobe ignores Linux, and its well-known image editing software Photoshop is the most popular software for Linux users. Although google has already begun to provide technical support to Adobe to implement PS/PS2 Linux, but it may take a while to publish
Bash has two levels of prompt. The first-level prompt is often seen when Bash is waiting for command input. The default value of the first-level prompt is the $ symbol. If you do not like this symbol or want to define a prompt, you only need to modify the value of the PS1 variable. For example, change it:
PS1 = "Enter a command :"
The second-level prompt is displayed when you need to enter more information for Bash to execute a command. The second-level prompt is> by default 〉. If you need to d
/*helpless I changed for so long or look at the solution first run one side KMP a few ans[p] means the total number of matches to the length p these are not necessarily exactly to P so in the process of ans[p] by processing into all the number of matches to the length of P The final answer is the total number of matches to the length of the p+1- The total number of matches to the length p is exactly the number of times to match the length p*/#include#include#include#defineMAXN 200010using namesp
ArticleDirectory
First time
Second
Scenario
When the disk quota is full (Windows 2003), it is almost impossible for the resource manager to open a folder with more than 30 million files.
I want to manually transfer some files. It is recalled that powershell was not learned last week, and it can be used normally.Try to solve
The conversion files do not start with T or M letters.First time
(LS | where {$ _-match '^ [^ Tm]'}) | foreach {mi $ _ c: \ P
important topics
Blocking assignment and non-blocking assignment
Parameters and constants
Use a signed number
Use functions in combination
Structure of the test platform
Part 3 exercise part 1 peripheral Experiment
Marquee
Flow Lamp
Seven-segment digital tube
Shake button
4x4 matrix keyboard
Lcd1602
PS2 mouse
PS2 keyboard
VGA Image
VGA text
PWM s
commands such as "Su-xxoo.
There are also three tips:
PS1:Bash reads the personal configuration files of each account after reading/etc/profile. The Personal Configuration Files Read mainly include three :~ /. Bash_profile ,~ /. Bash_login ,~ /. Profile. In fact, bash only reads one of the above three files, and the reading order is the above Order. That is to say, bash searches for the above three individual configuration files in sequence, and finds one, and the subsequent files are no longe
directoryPath command to search for the path. A list of directories separated by colons. Shell uses it to search for commands. A common value is/usr/GNU/bin:/usr/local/bin:/usr/UCB: /usr/binPpid: process ID of the parent processPS1 main prompt string, default value: $PS2 prompt string. The default value is>The selection prompt string used by the PS3 and select commands. The default value is #?Debug prompt string used when tracing is enabled. The defa
, output the longest base subsequence common to all of the given base sequences. if the longest common subsequence is less than three bases in length, display the string "no significant commonalities" instead. if multiple subsequences of the same longest length exist, output only the subsequence that comes first in alphabetical order.Sample Input32GataccagataccagataccagataccagataccagataccagataccagataccagataccagataAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa3Gataccagataccagatacc
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.