also makes your settings more personalized. When the system level conflicts with the user level settings, user settings are used.
Read the content of '. bashrc'. If you want to save some trouble, put all your configurations into'. bashrc '.
The above files are settings for each user. System-level settings are stored in '/etc/profile', '/etc/bashrc', And the'/etc/profile 'directory. d. You 'd better use your own configuration file: editing does not require the 'root' permission, but also makes y
Single Sign-on
1. Some Existing open-source SSO servers can be used
2. Use unified encryption and decryption among multiple projects, pass ticket between projects, and Judge in the filter. If yes, save the related values to the session.
Read/write splitting
It is best to use AOP programming. configure it in spring and then write it simply.CodeOK.
Notes for handling large data volumes
1. If you want to read the data before writing, you can read it all first, and then write it ag
A configuration file /etc/profilethat specifies the environment variables, which represent system-related environment variablesNote : But to change certain environment variables, it's best to define and write your own shell under/etc/profile.d/.It is best not to change the/etc/profile file.Like defining a path.sh.[Email protected] ~]# vim/etc/profile.d/path.sh#!/bin/bashExport path= $PATH:/tmp/:/data/bin/#自己新定义的PATHReset and take effect[Email protected] ~]# Source/etc/profile[Email protected] ~]
Linux terminal prompt features are defined by the system environment variable ps1. Run ''echo $ ps1' to view the current settings.The PS1 value is composed of a series of static texts or \ and escape character sequences, such:PS1 = "\ u @ \ H \ w $"Useful escape sequences include:\ E ASCII Escape Character\ H Host Name\ H complete host name\ L terminal device nam
-Bash-4.1 # solution when this occurs,
-Bash-4.1 # adjust-bash-4.1 # echo $ PS1 export PS1 = "[\ u @ \ h \ W] \ $"-bash-4.1 # echo $ PS1 \ s-\ v \ $-bash-4.1 # if [$ UID-gt 199] ["'id-gn '" = "'id-un' "]; then umask 002 else umask 022fi for I in/etc/profile. d /*. sh; do if [-r "$ I"]; then if ["$ {-# * I }"! = "$-"]; Then. "$ I" else. "$ I">/dev/null 2> 1 fi
Desktop icons Click the right mouse button, select Properties, modify the working directory to your own git directory:Open quick Edit, when the left mouse button can randomly select text, enter key copy. The right mouse button is pasted. In addition, the pasted shortcut key is the Inerst keyTo modify the default window sizeIf you feel that your git bash is running slow, modify the GIT installation directory Etc/profile file contents, comment out the PS1
In Linux, you must be clear about how to modify the terminal prompt for a Linux Terminal. Recently, we found that the absolute path indicated by the terminal is very long after entering a deep level of a folder directory, this makes people feel unaccustomed. here we will introduce how to modify the terminal prompt... in Linux, you must be clear about how to modify the terminal prompt Linux Terminal. Recently, we found that the absolute path indicated by the terminal is very long after entering a
In Linux, it is necessary to know some basic information before setting the command prompt. 1. environment variable: PS1 (number 1). different Linux versions have different bash values. you can use manbash to find the following information. Www.2cto.com at this time, we should know some basic information before setting command prompt operations in... Linux. 1. environment variable: PS1 (number 1). different
You can run powershell scripts in two ways.
Before running any script file, you must first set an appropriate execution policy.
Powershell scripts, like Windows cmd, and like MS-DOS batch processing, files need to be saved as. PS1 extensions, such as myscript. PS1
The most common method to run a script is to call it:
PS c: \> "C: \ belfry \ my first script.
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
1. What is a command promptCommand Prompt is the CLI (command-line interface, command line interface) in the process of human-computer interaction prompts the user to be able to enter the command of the special symbol, in Linux, the average user prompt "$", the root user's prompt "#". Of course there are some special strings in front of you.Like what: [Email protected]:~> Doge is the user name of the current user, Linux-uqf4 is the hostname, ~ Indicates the current directory is the Dodge of the
1. Load the configuration file sequence during the Linux login process:/ETC/PROFILE→/ETC/PROFILE.D/*.SH→~/.BASH_PROFILE→~/.BASHRC→[/ETC/BASHRC]Cat ~/.BASHRC #查看 ~/.BASHRC#. BASHRC# User specific aliases and functions# Source Global Definitionsif [-F/ETC/BASHRC]; Then. /etc/bashrcFi2. shell command prompt and color is configured by PS1:echo $PS 1[\[\e[32;40m\]\[email protected]\w]The parameters commonly used in PS1
[\[email protected]\h \w]\$ are both escape characters, in the shell's PS1 environment variable definition, no longer represents a simple combination of slash letters, is an escape character export PS1=‘[\[emailprotected]\h \W]\$‘ 更改’’的内容可以更改用户提示符Export command: Set environment variables for the current systemThe default modification does not take effect and needs to be written to the. BASHRC variable.
= 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
Mobile.
Download OpenNETCF Desktop Communication Library and compile OpenNETCF. Desktop. Communication. dll. The source code provided below already contains the DLL, so this step can be omitted.
PowerShell Development
First, create a text file and change the file extension to ps1. For example, my file is DatetimeSync. ps1. Then you can write the script.
Note: Windows does not automatically bind the
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.