Linux editing documentation

Source: Internet
Author: User

This article mainly shares the following VI command line operation:

Vi/etc/sysconfig/iptabels

First we need to understand the Putty client's copy-paste insert document exit and other commands

Replication: Refers to select replication in the Putty client. Hold down the left mouse button to select the command you want to copy, click to copy the command line, the mouse continues to the right click on the paste to the next line.

Paste: That is, how to paste the commands on the Web page to the Putty client. Mouse Select the page you need to copy the command line, click Putty Software, the mouse in the Putty software right click on the page from the web-side input to the Putty client, and then we enter to open.

Insert Document command: First make sure your input method is entered in English, select the Putty client, we find the keyboard return key (Backspace) to the right there is an insert (insert key), click into the Insert document mode, the Putty client is displayed in the lower left--insert-- At this point we can enter English to try.

Exit: Edit How to exit, in fact, it is very simple, first press the ESC key at the top left of the keyboard, and then enter in the English state: Wq (colon Wq) to save the exit, the other Exit command

: Q: Exit

: q! : Do not save exit

ZZ: Exit after saving

: e! : Discard modification and re-edit


Source: http://banwagong.host/15.html




From for notes (Wiz)

Linux editing documentation

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.