1 Answer
Create a file with -x option to protect or encrypt the contents.
For example:
# vim -x test.txt
It will ask for the new password. Once its set no one can access (View/Edit) the file without password.
Your Answer
x