[Error] E212: Can’t open file for writing
This post is written by YoungJ-Baek
1. Preface
Sometimes, you should generate a file regarding the tutorial or documentation. However, many unexpected errors can interrupt you. One of them is E212
error related to permission.
2. Error
Error Log
E212: Can't open file for writing
Press ENTER or type command to continue:
3. Solution
3.1. Using sudo command
Command
$ sudo vi {filename}
3.2. Give permission when save
Command
:w !sudo tee %> /dev/null
Leave a comment