- Open Terminal in Linux
- Navigate to the folder where you kept your programs using
cdcommand - Type the following command but Replace FILENAME with the name of your shell program Filename
nano FILENAME.sh - Start editing the file
- Once you are done editing the file press Ctrl + X to exit
- The editor will ask you to save the file, press Y to save it and press Enter