Linux system vim text editor exercises

Source: Internet
Author: User

1. Copy the/etc/profile to/tmp/directory and use the Find replacement command to remove the white space characters from the beginning of the/tmp/profile file

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/85/9B/wKioL1ep0naTId0XAAAHBfRpwpQ282.png-wh_500x0-wm_3 -wmp_4-s_1776576548.png "style=" Float:none; "title=" 1.png "alt=" Wkiol1ep0natid0xaaahbfrpwpq282.png-wh_50 "/>

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/85/9B/wKioL1ep0nby28TAAAAiHagjUkY803.png-wh_500x0-wm_3 -wmp_4-s_1219712909.png "style=" Float:none; "title=" 1.2.png "alt=" Wkiol1ep0nby28taaaaihagjuky803.png-wh_50 "/>

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/85/9B/wKiom1ep0nayHrcXAAAg05wjdp4126.png-wh_500x0-wm_3 -wmp_4-s_3390005602.png "style=" Float:none; "title=" 1.3.png "alt=" Wkiom1ep0nayhrcxaaag05wjdp4126.png-wh_50 "/>

2. Copy the/etc/rc.d/init.d/functions file to the/tmp directory, and add a # number to the beginning of the line beginning with a blank character for each line of/tmp/functions with the Find replacement command

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/85/9B/wKiom1ep0pnQQssMAAApt1-jy8U256.png-wh_500x0-wm_3 -wmp_4-s_3337232771.png "style=" Float:none; "title=" 2.png "alt=" Wkiom1ep0pnqqssmaaapt1-jy8u256.png-wh_50 "/>

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/85/9B/wKioL1ep0pnQswseAAAn4KxuLF4672.png-wh_500x0-wm_3 -wmp_4-s_2880556343.png "style=" Float:none; "title=" 2.2.png "alt=" Wkiol1ep0pnqswseaaan4kxulf4672.png-wh_50 "/>

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/85/9B/wKiom1ep0pmSPxUlAAA0ft9nVi4795.png-wh_500x0-wm_3 -wmp_4-s_187941042.png "style=" Float:none; "title=" 2.3.png "alt=" Wkiom1ep0pmspxulaaa0ft9nvi4795.png-wh_50 "/>

3. Copy the/etc/rc.d/init.d/functions file to/tmp directory, replace the/etc/sysconfig/init in the/tmp/functions file with/var/log;

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/85/9B/wKioL1ep0s6BL1_6AAA2UD7RSqg779.png-wh_500x0-wm_3 -wmp_4-s_1991042193.png "style=" Float:none; "title=" 3.png "alt=" Wkiol1ep0s6bl1_6aaa2ud7rsqg779.png-wh_50 "/>

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/85/9B/wKiom1ep0s_xjTEKAABLcx_lFuo863.png-wh_500x0-wm_3 -wmp_4-s_3784518845.png "style=" Float:none; "title=" 3.2.png "alt=" Wkiom1ep0s_xjtekaablcx_lfuo863.png-wh_50 "/>

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/85/9B/wKioL1ep0s_iwBpGAAAe6m7MGro818.png-wh_500x0-wm_3 -wmp_4-s_1289051721.png "style=" Float:none; "title=" 3.3.png "alt=" Wkiol1ep0s_iwbpgaaae6m7mgro818.png-wh_50 "/>

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/85/9B/wKiom1ep0s-DopVKAAAXSD_40m8923.png-wh_500x0-wm_3 -wmp_4-s_396035034.png "style=" Float:none; "title=" 3.4.png "alt=" Wkiom1ep0s-dopvkaaaxsd_40m8923.png-wh_50 "/>

4. Delete the # at the beginning of all lines in the/tmp/functions file that begin with # and have at least one blank character after #;

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/85/9B/wKioL1ep08qDOZ_hAABJz3u-ku0381.png-wh_500x0-wm_3 -wmp_4-s_685322895.png "style=" Float:none; "title=" 4.png "alt=" Wkiol1ep08qdoz_haabjz3u-ku0381.png-wh_50 "/>

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/85/9C/wKiom1ep08vjG_YAAAA490zpHzY212.png-wh_500x0-wm_3 -wmp_4-s_3488064674.png "style=" Float:none; "title=" 4.2.png "alt=" Wkiom1ep08vjg_yaaaa490zphzy212.png-wh_50 "/>


This article is from the "11798474" blog, please be sure to keep this source http://11808474.blog.51cto.com/11798474/1836293

Linux system vim text editor exercises

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.