(Newbie question ) In Centos or Linux what happens when ..?
by admin on Nov.18, 2011, under Linux
Two users of the same group try to edit a file at the same time? If they were given access to read and write text files of each other. . . . what happens? I give points!

November 18th, 2011 on 6:02 pm
When one user opens a file, it’s copied off the storage and into memory to be worked on by the processors and the user.
When a “save” occurs it overwrites the copy on the storage device.
So if another user opens that file (if the OS allows them) then the last person who saves over that file has the final word on it’s condition.
Normally this doesn’t occur as “rights” are assigned to a user who opened the file, until they close it, then others can’t open it and make further changes.
Some programs allow two or more users to edit the same file at the same time, the changes appear on each others screens in real time. Data base programs do this.