Common settings in Linux 1. the user name and password are displayed in the tab bar of secureCRT. 1echo-ne & quot; \ e] 2; $ {USER} @ $(/sbin/ifconfigeth1 | awk-F & quot; [:] + & quot; & amp; #39; /inetaddr/{print $4} & amp; #39;) \ a & quot; the user name and password are displayed in the tab bar of common Linux settings 1. 1 echo-ne "\ e] 2; $ {USER} @ $ (/sbin/ifconfig eth1 | awk-F" [:] + "'/inet addr/{print $4}') \ a" can be directly executed on the command line or added to linux. profile file. The result is as follows: 2. add the color 1 export GREP_OPTIONS = '-- color = Auto' to add this command to. bashrc to achieve the highlighted effect. The display effect is as follows: 3. check whether the ip address in front of the command line is displayed as this is disgusting. When you need to copy the ip address, you also need to convert "_" ".". Really troublesome. 1ipL = '/sbin/ifconfig eth1 | grep "inet addr:" | cut-d: -f 2 | cut-d ""-f1 '2export PS1 = "\ u @ $ ipL: \ w #" add these two commands. profile file. The display effect is as follows:
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service