Use the Linux editor nano

Source: Internet
Author: User

In the Linux Editor, nano is used. 1. When will nano be used? Generally, the network is very stuck. When using vim/vi for ssh, the window will die, or the server will crash. 2. how to use it? Open www.2cto.com or create a new file # disable automatic line feed for the nano file name # Save the modified nano-w/etc/fstab by pressing Ctrl + O to exit, press Ctrl + X. If you have not modified the file and accidentally pressed the save key, you can press Ctrl + C to cancel www.2cto.com to cut a whole line when requesting to confirm the file name, press Ctrl + K to paste Ctrl + U. If you want to use more precise cut control, you need to mark the text. Move the cursor to the beginning of the cut text and press Ctrl + 6 (or Alt + ). Move the cursor to the end of the text to be cut: The Marked text is reversed. To unmark the text, press Ctrl + 6 again. Press Ctrl + K to cut the marked text and press Ctrl + U to paste it. When you want to Search for a specific text, you just need to think of "WhereIs" instead of "Search. Press Ctrl + W, type the string you want to search for, and then press Enter. To search for the same string again, press Alt + W. Note: In the nano help document, the Ctrl-key is expressed as an escape character (^), so Ctrl + W is written as ^ W, and so on. Alt-key is expressed as an M (from "Meta"), so Alt + W is written as M-W.

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.