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
Directory
Directory
Description
PS1
Color syntax
Save Settings
DescriptionOn the internet to find a lot of information is not very detailed, or grammatical errors.So it took a long time to understand the whole, write down to facilitate the people behind the study.My Linux virtual machine version may be slightly different from the other versions of CentOS 6.5 ha.PS1PS1 is an environment variable
Some time ago, just came to practice, because their development machine environment has not yet been equipped with the boss of the machine, opened, Yi ~! Why not traditional linux [[email protected]]? This aroused the baby's great curiosity (why the tender?) Do you want to pretend to be old? And, as a result, once again opened the bird Brother's recipe (bird brother's Linux private dishes), but also for the sake of the Niang, finally have the answer. ps1
Tags: Shell current directory interpretation. BASHRC represents the scheme IMA slash TPSDrop one first:How to make your LD terminal more personal? First of all, we need to understand the following points of knowledge.A: Configuration filePersonal configuration file:~/.BASHRCGlobal settings file:/ETC/BASH.BASHRC (Modify requires Administrator privileges)BThe command prompt is controlled by a special shell variable, namely: PS1,PS2,PS3,PS4.We can only c
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
= 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
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.