same group hung up okayPerformance improvement: Read, writeRedundancy capability: AvailableSpace utilization: 1/2650) this.width=650; "Src=" http://c.hiphotos.baidu.com/baike/c0%3Dbaike92%2C5%2C5%2C92%2C30/sign= 71a5484ab74543a9e116f29e7f7ee1e7/5243fbf2b211931372c2690e65380cd790238d8f.jpg "alt=" 5243fbf2b211931372c2690e65380cd790238d8f "/>RAID5:RAID 5 does not specify an odd and even disk, but is interleaved with data and parity information on all disks . You can hang up a disk, but you can't h
Linux shell script output with color textThe color of the text terminal can be generated by using the ANSI unconventional character sequence.Example: "Echo-e \033[44;37;5m BLUE \033[0m""Echo-e \033[44;37;5m BLUE \033[0m BLACK"The area that needs to be modified is the red underlined part, where [the contents of the ***m section are replaced by the following number
Shell script programming (strict terminal format control, beautiful output font color)
#! /Bin/bash # font output color and terminal format control # font color 30-37echo-e "\ 033 [30 m black character \ 033 [0 m" echo-e "\ 033 [31 m red word \ 033 [0 m "echo-e" \ 033 [32 m green word \ 033 [0 m "echo-e" \ 033 [33m yel
Change the shell color in Linux-general Linux technology-Linux programming and kernel information. For more information, see the following. It's very simple. I just implemented it. It's just an appealer to learn Linux in.
As we all know, shell is divided into user and root. With "su", you can achieve switching.
The shel
There are two ways to bring the echo output color
Define color variables in shell scripts, use ECHO-E to call variables
When defining a variable, define the ECHO-E in the variable, and then output the variable
Shell script that lets echo output display color
The shell, as a scripting language, is a skill that every Linux administrator must master, sometimes adding some background color to the output in the shell, making the script a little more aesthetically pleasing, and using echo to output a string, by default, the string echo displays is white.650) this.width=650; "title=" QQ picture 20150402132920.png "Src=" htt
The order in which environment variables are loaded after Linux startup is: ETC/PROFILE→/ETC/PROFILE.D/*.SH→~/.BASH_PROFILE→~/.BASHRC→[/ETC/BASHRC]To change the color of the shell font after a user logs in, add PS1 content to the ~/.BASHRC, and the following is my machine's settings:#. bashrc# User specific aliases and FunctionsaliasRM='rm-i'aliasCP='cp-i'aliasMV='mv-i'aliasVI='Vim'# Source Global Definitio
In Linux, how does one output the echo-e "\ 033 [44; 37; 5 m ME \ 033 [0 m COOL" command in a Shell script: the background color is blue, the foreground color is white, the font flashes, the output character ME, And then reset the screen to the default settings. After the output character me, the color returns to norma
Nbsp; Shell is divided into user and root. With "su", you can achieve switching. The shell color control is implemented through the PS1 system variable operation in the/home/user/. bashrc and/root/. bashrc files! /Home/user/. bashrc and/root/. bashrc correspond to user and root respectively. First
Shell can be divided
The character color of terminal is controlled by escape sequence, it is the system display function in text mode, and the specific language is independent, Shell,python,perl and so on can be called.The escape sequence starts with the ESC and can do the same with \033 (the ASCII code for ESC is in decimal notation is 27, = 33 in octal).\033[display mode; background color
Tags: lang cmd technology http Item tab URI MES launchDownloadPlease download it to https://github.com/mbadolato/iTerm2-Color-Schemes.git clone https://github.com/mbadolato/iTerm2-Color-Schemes.gitInstallationTo install:
Launch ITerm 2. Get the latest version at iterm2.com
Type cmd+i (? +i)
Navigate to Colors tab
Click on Color Presets
Click on
Shell script (strict terminal format control, beautiful output font color)[Cpp] view plaincopy
#! /Bin/bash
#
# The following figure shows the font output color and terminal format control.
# Font color 30-37
Echo-e "\ 033 [30 m black character \ 033 [0 m"
Echo-e "\ 033 [31 m red \ 033 [0 m"
Echo-e "\ 033 [32 m
The cue color in the shell terminal is determined by the PS1 in the environment variable, so change the PS1.1> Temporary changes[[Email protected]~]# echo $PS 1 [\[email protected]\h\w]\$ [email protected]~]# ps1= ' \[\033[31m\][\[email prote cted]\h\w]\[\e[0m\]\\$ "[[Email protected]~]#Use echo $PS 1 to view the value of the PS1 at this time, and then give PS1 a color
Author: gnuhpcSource: http://www.cnblogs.com/gnuhpc/
Color is selected by adding a special sequence-basically a numerical value between "/E [" and "m. If more than one numeric code is specified, separate them with semicolons.Echo-e "/E [31; 40 m"The first digit (31) is the foreground color (red), and the second digit is (40) the background color (black)Echo-e "/E
Tags: Linux script shell color fontShell echo display in script with color display , echo display with color, need to use parameter- e The format is as follows: echo-e "\033[ word background color; text color m string \033[0m" F
The color of the text terminal can be generated by using the ANSI unconventional character sequence. Example:
echo -e "\033[44;37;5m ME \033[0m COOL"
The above command sets the function as follows:
背景色为蓝色,前景色为白色,字体闪烁,输出字符“ME”,然后重新设置屏幕到缺省设置,输出字符 “COOL”。
“e”是命令 echo 的一个可选项,它用于激活特殊字符的解析器。
“\033”引导非常规字符序列。
“m”意味着设置属性然后结束非常规字符序列,这个例子里真正有效的字符是“44;37;5” 和“0”。
修改“44;37;5”可以生成不同颜色的组合,数值和编码的前后顺序没有关系。
The encoding you can choose is as
This article mainly describes how to output colored content in a shell script.
In a shell script, both Echo and printf can output content. Let's look at the following example
Echo-e "\033[43;35m David use echo say hello world \033[0m \ n"
printf "\033[44;36m David use printf say Hello world \ 033[0m \ n "
echo-e" \033[47;30;5m David use echo say \033[0m Hello world \ n "
The output is as follows:
Its
Reprinted please indicate the source: http://blog.csdn.net/lastsweetop/article/details/8908808 Author: Fire tianlin
To avoid setting for each user, directly modify the/etc/profile file.
1. in Linux
Add the following three lines:
Give your ls a bit of color
alias ls='/bin/ls --color=auto'
Give your grep a color.
alias grep='grep --
First, familiarize yourself with the echo command
NameEcho-display a line of text
SummaryEcho [Option]... [String]...
DescriptionOutputs a string to the standard output.
-N does not output line breaks
-E open the backslash (ESC) Escape
-E cancel the backslash ESC escape (default)
-- Help: Display help
-- Display version
That's all.Note that the-e option is required for the output color.
Next, let's focus on the application of the ANSI control code in
Tags: need root share custom share picture background color APT Comm stringShell Color and Flicker control
Sometimes custom output is required under the shell, such as adding color to the output, highlighting it, or adding flicker.Then these color codes or control c
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.