- Open Terminal in Linux
- Navigate to the folder where you kept your programs using
cd
command - Type the following command but Replace FILENAME with the name of your shell program Filename
vi FILENAME.sh
- Press
i
to start editing the File - Once you are done editing the file Press the Esc button on your keyboard
- Type
and press Enter
:wq