---
name: "snlockf"
section: "8"
platform: "linux"
package: "sn"
version: "0.3.8-12"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/snlockf"
---

# snlockf(8)

lock files from within shell-scripts (used by sn news system)

## NAME

lockf - lock files from within shell-scripts (used by sn news system)

## SYNOPSIS

**lockf**

## DESCRIPTION

**lockf** can be used to lock files from within shell-scripts. Filedescriptor 3 is always locked, and the lock remains until the process is killed. The process-id is written to standard output, as to facilitate killing the process.

It is used by the sn news system.

## SEE ALSO

**[sn(8)](/sn/8.md)**
