PS1: the user's usual prompt.PS2: the first line is not complete. Wait for the prompt entered in the second line.
Echo $ PS1 can see the current prompt settingsFor example, Green is displayed and time and shell version are added.Export PS1 = "\ [\ e [32m \] [\ u @ 'you are right' \ W \ t \ V \ d] \ $"OrPS1 = "\ [\ e [32m \] [\ u @ 'you are right' \ W \ t \ V \ d]
search PATH of the command) and takes effect immediately. The following code is part of/etc/profile.
if [ "`id -u"` -eq 0 ]; then PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"else PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"fiexport PATH
For convenience, the path of the root user (ID 0) is different from that of any other user. This is because the location of the system binary Directory (sbin directory) is traditionally a reserved location for syst
Linux community (LinuxIDC.com) Today I will share with you a few small code for the beautification of the UbuntuLinux terminal. First look at the effect: I don't know if you like it or not. The Code is as follows: PS1 = "example-[\ d] [\ u @ \ h: \ w] \ n example- gt: PS1 = "\ [\ 033 [0; 32m \] \ A \ [\ 033 [0; 31m \] \ u \ [\ 033 [0; 34m \] @ \ [\ 033 [0; 35m \] \ h \ [\ 033 [
Linux community (LinuxIDC.com
When the installation completes a Linux system, the default terminal is generally black and white, how to turn the prompt into color, which needs to be configured in the $HOME/.BASHRC file by the modification of the PS1. Here is a detailed description.Note: This article is a reference to Http://wsunwind.blog.sohu.com/192388839.html's related instructions1 Simple Comprehension PS1Modify the PS1 variable dire
A few days ago when using grep, found that grep's * incredibly support problems, and can not get the desired results, so took some time to implement the regular expression x match, the following function can match *,?。The code is short, but it's efficient.BOOL Match_star (const char* text,const char* pattern) {const char *CP = text; Const char* PP = pattern; const char *PS1, *PS2; if (!*pattern) return true; while (
The website or WebService must be automatically deployed to IIS. Currently, powershell is used for implementation. The related code is as follows:
1. apppool_site_deployment.ps1
# Get the path where the script is running$ Scriptdir = Split-path (resolve-path $ myinvocation. mycommand. Path)Write-host "script location:" $ scriptdir-foregroundcolor green
# Set up aliasesSet-alias removesitepool $ scriptdir \ apppool_site_delete.ps1Set-alias createsitepool $ scriptdir \ apppool_site_creation.ps1
Re
parameters of are the ing between jobs and tasks. The tasks in the ing relationship are expressed by IP addresses and port numbers. The specific ing relationships are shown in the following table:
tf.train.ClusterSpecConstruction
Available tasks
tf.train.ClusterSpec({"local": ["localhost:2222", "localhost:2223"]})
/job:local/task:0 local/job:local/task:1
tf.train.ClusterSpec({ "worker": [ "worker0.example.com:2222", "worker1.example.com:2222",
global variables of different users are also ready, and the local variables related to themselves are also ready, everything is ready, you can perform system operations.
# /etc/bashrc# System wide functions and aliases# Environment stuff goes in /etc/profile# It's NOT a good idea to change this file unless you know what you# are doing. It's much better to create a custom.sh shell script in# /etc/profile.d/ to make custom changes to your environment, as this# will prevent the need for merging i
The infopath form template containsCodeTo deploy the program to farm, you need to perform some special steps in the following two methods: code and powershell. Code Format
Http://nader.elshehabi.com/2011/08/how-to-really-deploy-infopath-2010-forms-with-code-behind-as-a-feature/
Http://sandeepnakarmi.com.np/2011/03/sharepoint-solution-to-deploy-infopath-form-template-as-administrator-approved-form-template/ Powershell format
For ease of use, you can use the following form
DP. bat s installa
difficult. Therefore, the general user will set the terminal to the following type:$TERM =vt100$VT100 is the abbreviation for virtual terminate 100 . Virtual terminal is a kind of fake terminal, the terminal that really has its own monitor and keyboard, will connect to the computer host through special cable (such as serial port). VT100 is a virtual terminal specification supported by most Linux systems, and it is commonly used for ANSI,xterm and so on.Set the PATH variablewhen you enter a comm
One of the benefits of Git is that the branch management of the code becomes an extremely convenient thing, the branch only retains the difference, does not have to copy any files, does not connect the network, quickly creates, uses is deleted. The GIT branch has nothing to do with the complexity of the project, no matter how complicated your project is, creating a git branch is always an instant thing. At the same time, because the information of the parent class branch is preserved, the mergin
If your directory level is very deep, this shell will be very convenient to switch directly to the destination directory, such as
Current directory/usr/home, and directory Desdir in/usr/home/app/local/opp/william/desdir
Direct penetration
$ CD Desdir, you can switch directly from the current directory/use/home to/usr/home/app/local/opp/william/desdir
Configure. Profile, add two lines
. ./bin/chdir
Alias cd= ' ChDir '
File:chdir
# Auto Find your directory
# Writer:william 2006 Beijing
#
= bjsrv
# Hostname bjsrv // enable the host name to take effect or restart the system(2) modify the host name under sh
Vi/etc/sysconfig/network // modify the Host Name
NETWORKING = yes
NETWORKING_IPV6 = no
HOSTNAME = shsrv
# Hostname shsrv // make the host name take effect or restart the system3.. bash_profile
This is the display format setting. Do not modify it.(1) Modify bj's. bash_profile
# Vi. bash_profile
#. Bash_profile
# Get the aliases and functions
If [-f ~ /. Bashrc]; then
.~ /. Bashr
. Some shells are easy, some shells are difficult, and some areThis cannot be done.
C shell (CSH ):
Add the following to your. cshrc.
Alias setprompt 'set prompt = "$ {CWD} % "'Setprompt # To set the initial promptAlias CD 'chdir \! * Setprompt'
If you use pushd and popd, add the following content.
Alias pushd 'pushd \! * Setprompt'Alias popd 'popd \! * Setprompt'
If your c shell does not have the variable $ CWD, replace it with 'pwd.
If you only want prompt to have the last component of the
Build Environment:
Windows 2.0 and Win2008 come with PowerShell. Enter powershell in the command.
Http://www.microsoft.com/download/en/details.aspx? Displaylang = en id = 20430
Use Windows PowerShell ISEWrite code. The user experience is similar to writing c # code. Enter powershell_ise in the running command.
Third-party development tool: PowerGUI.3.1.0.2058.msi, which provides smart sensing.
Common shortcut keys:
After saving the ps file, you can press F9 to start debugging.
F10 jump debuggin
displayed, and input is also displayed.Set-tuDisable the check for undefined variables during replacement.
Use echo $-to display all configured shell options.
(5) User Startup File. profilePATH = $ PATH:/usr/loacl/bin; export PATH
(6) shell Environment VariablesCDPATH is used to find the path of the cd command.HOME/etc/passwd fileIFS Internal Field Separator. The default value is space, tab, and line feed.Use MAIL/var/mail/$ USERNAME mail and other programsPATHPS1, PS2 default prompt ($) and li
Like java Maven,. NET Has nuget. The convenience of nuget is not described here. The nuget release process is not as complicated as you think. Therefore, we hope that the developers in this article can contribute more useful packages.
1. Register a userOfficial address for nuget: http://nuget.org/
2. Use nuget PackagerYou can refer to the nuget documentation to create your package step by step. Reading documents is still a little troublesome.The good news is that nuget has a dedicated package (
of users are available, the personalized global variables of different users are also ready, and the local variables related to themselves are also ready, everything is ready, you can perform system operations.
# /etc/bashrc# System wide functions and aliases# Environment stuff goes in /etc/profile# It's NOT a good idea to change this file unless you know what you# are doing. It's much better to create a custom.sh shell script in# /etc/profile.d/ to make custom changes to your environment, as
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.