作成

touch foo.sh

Edition

vi foo.sh
nano foo.sh
code foo.sh

Syntax

Decide the shell

! /bin/sh
! /bin/bash
! /bin/zsh

Creation and Edition

vi foo.sh

Execution

cd
cd ~
./foo.sh

Deletion