Today I was trying to make some changes in a .json file in Linux using vi editor. While saving the file I got the warning saying cannot write to the backup file, use ! to override. I then ran :w! command and it said that updates were saved. But when I did cat [filename], the file was empty.
Later I realized I was getting the warning in vim because system storage was full. I freed up some space. I then ran vi -r [filename] as well to recover the file but it says No swap file found for [filename].
There are 5 files additionally created with extensions .json~, .jsox~, .jsoy~, .jsoz~, .jsov~ all being empty.
Is there a way to recover the file as it was an important one?
vidoesn't make backups. Systems administrators do.