Why are there .LCK files?
On Linux, I had these .LCK files:
> ls -l -rw-r--r-- 1 el el 4810 Feb 9 2013 mybackground.gif -rw-r--r-- 1 el el 33 Feb 9 2013 mybackground.gif.LCK -rwxr--r-- 1 el el 193 Feb 9 2013 my_file.html -rw-r--r-- 1 el el 33 Feb 9 2013 my_file.html.LCK
Some programs create these files. You must find out which one. The program that does this will be a program that tries to perform some operation on these files over the network, or perhaps even on this disk. A poorly written program that synchronizes, copies, or deletes files on a disk can choose to use lock files in its work.
The lock file contains the following information:
eric||my.myemail@hotmail.com
It is safe to delete .LCK files after the failure of an irresponsible process that left them open. The purpose of these files is to make sure that two processes doing the same thing do not step on each other, causing errors.
Using .LCK files is a bad programming practice that violates the "don't guess it yourself" rule. Creating code that does redundant things to make triple sure that we did it right is a sign that you are a bad programmer .
Any program caught with a red hand clogging up these .LCK files that are hanging should be judged negatively with extreme prejudice.
In my case, it was an automatic synchronization operation of DreamWeaver CS4 that created and opened these files. You will need to delete these files manually, and then find out what action causes these files to remain open, and then send error reports to fix this software.
Eric Leschinski
source share