wq [ ! ]
wq
!
Write and quit the file in one movement. The ! flag forces the editor to write over any current contents of file .
file