I have a folder /home/ros/codes. Inside it, I have datewise folders where I have a CMakeLists.txt file and a build folder inside which I run cmake.. and make command.
Recently, I observed if I edit any CMakelists.txt file from any of this group of folders, the edits get automatically overwritten in all others files. Even if I have renamed the other file to -say- CMakelists(copy).txt , still the changes are being reflected. I can see these are locked files.So I am using sudo gedit to edit them.
Why is this happening and how can I avoid it further?