The difference between the VI and Nano commands in Ubuntu text editing (Nano is recommended)

Source: Internet
Author: User

VI is an extremely popular full-screen document editor in the Unix world, and almost any UNIX machine will provide this software as a Notepad for Windows .

Type vi/etc/hosts

Enter the VI interface and move the cursor to the end of the file. Press ESC to make the command mode, then enter a, and a new line to enter the host you want to configure, such as:

Press ESC when finished to command mode, enter: WQ (note need to enter:) Save exit.

2, modified with the nano command:

The Nano is a small, free, and friendly editor that has nano commands on most Linux. Relative VI, unfamiliar with Linux I feel nano to be a lot simpler:

After opening , edit directly, the command is as follows:

sudo Nano/etc/hosts

Press Ctrl+x to exit when finished, press Y to save, enter

The difference between the VI and Nano commands in Ubuntu text editing (Nano is recommended)

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: 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.