1. Create a new text editor
vim test.sh
Press the "i" type insert mode
inputExplain comments represent content
Note that different types of content or code in two rows separated by spaces, to facilitate comprehension
3. Press the "Esc" to exit the insert mode. Enter ": wq" to save and exit
4. Run the command: SH test.sh
5. It also can execute this
gives execute permissions, you can directly ./test.sh