> For the complete documentation index, see [llms.txt](https://til.devjugal.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://til.devjugal.com/linux/determine-which-process-is-using-a-file.md).

# Determine Which Process Is Using a File

We can use `lsof` command to determine which process is using a file.

## Usage

```bash
lsof file/path
```

***Source:*** [***Unix - StackExchange***](https://unix.stackexchange.com/a/13791)
