root@DyanGong:~# nano hello.sh
root@DyanGong:~# nano hello.sh
root@DyanGong:~# cat hello.sh
some content inserted here.
root@DyanGong:~#
- PS : how to save and exit
To save and exit in Nano, press Ctrl + O to save your changes, then press Ctrl + X to exit the editor; if you have unsaved changes, Nano will prompt you to save them before exiting