175 votes
LOCK File - What is a .lock file and how do I open it?
Learn about .LOCK files and view a list of programs that open them.
Languages
Overview
What is a LOCK file? A LOCK file is a file used by various operating systems and programs to lock a resource, such as a file or a device. It typically contains no data and only exists as an empty marker file, but may also contain properties and settings for the lock.
More Information LOCK files signal to applications that a resource should not be used until the lock is released. This is useful for programs that need to prevent concurrent access to critical resources. For file locking, programs typically create a new file and add the ".lock" extension for the original filename. For example, a lock file for "example.file" would be "example.file.lock." LOCK files are commonly seen on Unix-based systems, including Red Hat Linux system file locks. Other examples of LOCK files include Mozilla's parent.lock file, which locks Windows Firefox profiles, and Apache Web Server lock files, which are created using the LockFile directive.
Document Icon
Breadcrumbs
Previous / Next
In-Depth
.LOCK File Extension
2 file types use the .lock file extension.
| Developer | N/A |
| Popularity |
4.0 | 175 Votes |
What is a LOCK file?
A LOCK file is a file used by various operating systems and programs to lock a resource, such as a file or a device. It typically contains no data and only exists as an empty marker file, but may also contain properties and settings for the lock.
More Information
LOCK files signal to applications that a resource should not be used until the lock is released. This is useful for programs that need to prevent concurrent access to critical resources. For file locking, programs typically create a new file and add the ".lock" extension for the original filename. For example, a lock file for "example.file" would be "example.file.lock."
LOCK files are commonly seen on Unix-based systems, including Red Hat Linux system file locks. Other examples of LOCK files include Mozilla's parent.lock file, which locks Windows Firefox profiles, and Apache Web Server lock files, which are created using the LockFile directive.
Open over 400 file formats with File Viewer Plus . Free Download
Programs that open LOCK files
Sort
Pricing
Program Name
Platform
Reset
X
Windows
Mozilla Firefox
Free
Microsoft OneDrive
Free Trial
Mac
Microsoft OneDrive
Free Trial
Linux
Mozilla Firefox
Free
Apache Web Server
Free
Category: Misc Files
Updated: March 6, 2019
Minecraft World Lock File
| Developer | Mojang Specifications |
| Popularity |
3.6 | 46 Votes |
A LOCK file may also be a lock file used by Minecraft, an open-ended block construction game. It is included as part of the data for a Minecraft world and enables a Minecraft application to lock the world so that only one Minecraft instance has it open. LOCK files save a timestamp for when the world was last accessed.
More Information
A LOCK file is typically named session.lock . Minecraft uses a locking policy such that the last instance to open the world is the world owner. If the contents of the session.lock file change after an instance has written its timestamp, the instance aborts and gives up the lock.
Programs that open LOCK files
Sort
Pricing
Program Name
Platform
Reset
X
Windows
Mojang Minecraft
Paid
Mac
Mojang Minecraft
Paid
Linux
Mojang Minecraft
Paid
Category: Game Files
Updated: March 6, 2019