About the role and writing of shell scripts, and the general use of the VI editor for editing help

Source: Internet
Author: User

In Linux, the execution of a script can help us save a lot of time, for the execution of the script it is understood by the individual, it is the same as the beginning of the file #! Bin/bash through the VI editor to create a new executable file, the usual we deal with the garbage command all with the editor, its style is the same as the document file, if edited by editing the document, but they are not executable commands, although they are the same content, In the VI editor to edit the executable commands are color-coded, although currently do not understand the meaning of various colors, slowly through the late complement complete, sometimes in the execution of the script error, it prompts you in the script how many lines of error, so that you need us to reopen the VI editor changes, The system default editor is not display line number, if you want to permanently display the line number requires us to configure the VI editing file, very simple, input command VI ~/.VIMRC, the idea is/. instead of./???? This is also a detail issue, enter set Nu in the file to save the exit. Re-enter to see the line number set Nonu is not to display line numbers.

About the role and writing of shell scripts, and the general use of the VI editor for editing help

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.