# File Lock

*noun*

say it: **“FYLE lok”** **/ˈfaɪl lɑk/**

A mark a program holds on a file while it works, so other programs know it's in use and wait or skip.

## What is a **file lock**?

A **file lock** is an "occupied" sign a program hangs on a file while it works. Other programs that respect the sign wait or skip instead of getting in each other's way. The lock goes away when the program ends, even if it crashes.

## In a sentence

- “The backup holds a **file lock** on backup.lock while it runs.”
- “When the script ends, its **file lock** goes away by itself, even after a crash.”

Level: Journeyman · [More Operating System terms at this level](https://www.ask-codey.com/glossary?category=operating-system&level=3)

Updated: November 10, 2026

Source: https://www.ask-codey.com/glossary/file-lock
