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