Linux shell script written in

1. Create a new text editor
vim test.sh

  1. Press the "i" type insert mode
    input

    Explain 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

Guess you like

Origin www.cnblogs.com/ningqian/p/12128643.html