What is the .~lock. prefix for a file?

I have a directory of notes on my system. When I enter ls -A, I see my regular files, plus some files prefixed with .~lock. and ended with #

For instance,

ls -A gives:

Compiling.odt .~lock.Compiling.odt#
Environment.odt .~lock.Scripting.odt#

What are these files and what is their purpose?

1 Answer

It is a libreoffice / openoffice - specific file meant to tell other LO/OO instances that the file is opened in one instance.

From ask.libreoffice.org

@peterwt: The lock file is created when a document is opened and normally deleted when the document is closed. It's purpose is in a multi user environment to prevent more than one user to edit a document, which would create a problem. The first user to open the file will be able to edit the document but any subsequent users who open the document will be in read only mode.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like