Why I do 'touch' first: I'm in vim creating the file, then I try to save and discover I don't have write permissions [1].
With a touch first, saving the file always works.
1: https://www.cyberciti.biz/faq/vim-vi-text-editor-save-file-w...
With a touch first, saving the file always works.
1: https://www.cyberciti.biz/faq/vim-vi-text-editor-save-file-w...
Sadly it does not save me from going and editing a system file as non-root and then trying to save... :(