Bash Vi Exit
#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!
Enrybi