variable • read-p through breakpoint "please input a value (number):" a read-t 5 "Please enter a value: "IP -- set the timeout value for the value assignment. # H = 192.168.0.253 # echo $ H192.168.0.253 # read-p "Please enter ip address:" H2Please enter ip address: 192.168.0.252 # echo $ H2192.168.0.252 • reference variable • echo $ VARNAME • echo $ {VARNAME} scope • Global variable (parent and child shell) • export •. or source call • local variable • variable in Program • variable in function
except the root user) 2. you can change the command prompt through the variable $ PS1. you can enter echo $ PS1 in the command to view the current settings, as shown below: [root @ centos6 ~] # Echo $ PS1 [\ u @ \ h \ W] \ $ reset the command prompt format: [root @ centos6 ~] # PS1 = "[\ u @ \ h \ W] \ $" [\ u @ \ h \
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
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
PATH = $ PATH:/usr/loacl/bin; export PATH
(6) shell environment variables
CDPATH is used to find the path of the cd command.
HOME/etc/passwd file
IFS Internal Field Separator. the default value is space, tab, and line feed.
Use MAIL/var/mail/$ USERNAME mail and other programs
PATH
PS1, PS2 default prompt ($) and line feed prompt (>)
TERM terminal type. Common types include vt100, ansi, vt200, and xterm.
Example: $
How to change the Linux font and background color-Linux general technology-Linux technology and application information. Linux users must be familiar with the black and white text on the text interface and the white and black text on X. These two colors can be said to be classic and clear. However, you can change the font and background color based on your preferences.
The following describes how to change the font and background color of RedHat:
Command:
1. Set the environment variable histsize so that it can save 10,000 command history.2. Why if this setting PS1 (ps1= "[\[email protected]\h \w]\$") displays the results and ourIf not, how do you set it up to restore the original default?3. Find ways to replace all lowercase letters in the file names of files in the current directory with capital letters4. Use sort to sort the 5th paragraph of the/etc/passwd
We are familiar with the method of customizing ESXi installation image is basically esxi-customizer-v2.7.x to complete, today I give you a new method, this method in ESXI6.0 start more suitable, as for why we try to know more.The Preparation tool requires:ISO files for Vmware-powercli-6.3.0-3737840.exe and Esxi-customizer-ps-v2.4.ps1 and ESXi 6.0.650) this.width=650; "title=" clip_image001 "style=" border-top:0px;border-right:0px;background-image:none
to as PS)
When we talk about PS, we may be concerned with a few questions:
When does precompilation occur
When PS is cached
Answer the first question:" An SQL statement was specified when the PreparedStatement object was created, and the statement is immediately sent to the DBMS for compilation ."Answer a second question:is when we execute the close () method of PS ~ ~ ~
TEST
I did a test for the PS cache, the idea is for the same SQL, if I fetch the PS is t
"ArvatoBBASendMailTimerJob"} | ft id, name// Set job to a variable$ Job = Get-SPTimerJob-id 59af3540-7ac0-4477-82f9-1f6ab9829aca// And delete it.$ Job. Delete ()
Finally, the wsp file is automatically packaged in the bin \ debug directory of the SharePoint solution of VS2013. To remotely deploy the solution to the enterprise environment, copy the wsp file and write a PowerShell script file for ps1. It can be delivered to the enterprise system admini
Many people are not concerned about the importance of command line prompts. But I do not think so at all. A good command line prompt can change the way you use commands. To this end, I found some useful, excellent, and interesting bash command line prompts on the internet. Below I will list some of my favorite command line prompts as follows.
Note-to use the following prompts, you can copy and paste the headers starting with "PS1" to your terminal. In
the two most exposed files:/Etc/profile,
At the top of the shell configuration file. This is a global setting of the System shell environment, such as PATH and MAIL many environment variables. The modification affects all users .~ /. Bashrc,
At the lowest end of the shell configuration file. This is a configuration file for each user's shell environment. Most of our personalized customization can be directly modified in this file.
Login shell (bash) will read the configuration file during logi
1. PS1: (set the prompt character)
This is interesting. You can customize your own prompt;
Every time we press the [enter] key to execute a command, the prompt character will appear again, and we will take the initiative to read the variable value.
The special symbols in the preset bash PS1 variable represent the meaning:
O \ D: represents the date, in the format of weekday month date, for example, "Mon
What exactly does the prompt character mean when we log on to Linux? Can you set it up again.First look at the default display:~~]#As you can see, the display of the normal user and the root user is different. What does each symbol mean?Fuwh/root: currently logged in user.@localhost: The host name of the connection, I am connected locally, so it's localhost.~: That is the current directory, I am now in their home directory, so it shows the ~$/#: This is the prompt character, if it is root, it is
Linux terminal Everyone must know, recently in the use of the time to find a folder in the deep level of the directory, the absolute path of the terminal hint is very long, so that people feel very unaccustomed, here to introduce how to modify the terminal tips, by the way, introduce the following prompt color:Introduction to PS1 VariablesPS1 is an environment variable for Linux end users that describes the settings for the command line prompt.You can
be as root, followed by commands that can be executed, preferably write full pathThe # # Allow root to run any commands anywhereAll= Root (All)/usr/sbin/useradd,/usr/bin/passwd Chen All= (root)# # # Allows members of the ' sys ' group to run networking, software,[Root@mail ~]# exitLogout[Chen@mail Desktop]$ sudo-l #查看自己可以执行的sudo命令[sudo] password for Chen: #输入自己的密码Matching Defaults entries for Chen on this host:Requiretty, Always_set_home, Env_reset, env_keep= "COLORS DISPLAY HOSTNAMEHistsize in
Task:display current BASH prompt (PS1)
Use the echo command to display current BASH prompt:$ echo $PS 1Sample outputs:
[\\u@\h \\w]\\$
This is another output from my Debian based system:$ echo $PS 1Sample outputs:
\[\e]0;\u@\h: \w\a\]${debian_chroot:+ ($debian _chroot)}\u@\h:\w\$
By default the command prompt be set to [\u@\h \w]\$. The backslash-escaped special characters are decoded as follows: \u: Display the current username. \h: Display the ho
‘Pa$$word‘ -AsPlainText -Force$mycreds = New-Object System.Management.Automation.PSCredential ("administrator", $secpasswd)Start-Process "C:\Program Files (x86)\TeamViewer\TeamViewer.exe" -Credential $mycredsThe next step needs to be compiled into EXE. Here need to explain that PowerShell does not really ' compile ' into an EXE, his essence is to compress after processing exe shell. Generally can be compiled with PowerGUI this software, but I am too lazy to download the installation of such a l
/music‘(iii) deleting aliasesTo delete an alias with the unalias command:Observation, the music alias was deleted. A small problem, if the alias and command name conflict, who should be executed first?See, as a matter of fact, the implementation of LS, the result is entered into the/etc/samba directory. What if the LS definition deletes a file? Dead don't know how to die ...Iii. Custom PromptsThe prompt is waiting for the user to enter the command section. Such as:There are two common types of p
Final effect
Let's go
1: Create a new file (Ctrl + N) with a size of 1920px * 1200px,72 pixel resolution. Then select the Paint Bucket tool (G) and fill the new background layer with the #353430 color.
2: Create a new layer and use the Paint bucket tool (G) #959595色填充这层. Set opacity to 41%.
3: Click on the bottom of the layers palette to add the layer style icon, and then select the pattern Spiderman patterns ov
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.