Text editing tools How to use VIM practice

Source: Internet
Author: User

    1. Copy the/etc/grub.cfg configuration file to the/tmp directory and use the Find and replace command to delete the white space character at the beginning of the/tmp/grub.cfg file;

      650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/A0/wKioL1XpvZegZVgyAAV3sVpp6u8644.jpg "/>

      The results are as follows

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/A4/wKiom1Xpu3Ky46bIAAWDALIt2DM360.jpg "/>



2. Copy the/etc/rc.d/init.d/functions file to the/tmp directory, and add a # to the beginning of the line beginning with a blank character for each line of/tmp/functions with the find replacement command; The original whitespace character is reserved;

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/A0/wKioL1XpvZfijkBWAAHLIJMTrIU479.jpg "/>


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/A4/wKiom1Xpu3OipH1bAAOHrPl4TwI123.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/A0/wKioL1XpvZihTCK2AARzsz78Q4Q393.jpg "/>

    1. Replace the/etc/sysconfig/init in the/tmp/functions file as/var/log;

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/72/A4/wKiom1Xpu3OTPdmHAARtvxkqDD8683.jpg "/>



4. Delete the line at the beginning of the/tmp/functions file so # starts with # and at least followed by a blank character #

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/72/A4/wKiom1Xpu3ODkXstAAOOTq7JjoY338.jpg "/>





This article is from the "Summer Month" blog, please make sure to keep this source http://lkc0110.blog.51cto.com/3410558/1691443

Text editing tools How to use VIM practice

Related Article

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.