Common Linux settings

Source: Internet
Author: User

Common settings in Linux 1. the user name and password are displayed in the tab bar of secureCRT. 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:

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.