xxxxxxxxxx
#to modify a file:
vi FILENAME.sh
#press colon ':' + ENTER (the position of the cursor will be to the end of file)
#to exit & SAVE:
wq
#to exit WITHOUT SAVING:
q!
xxxxxxxxxx
(without saving changes)
if in insert or append mode press Esc.
else type ":q!" and press Enter