lslocks

List local system locks. More information: <https://manned.org/lslocks>.

Install

All systems
curl cmd.cat/lslocks.sh
Debian Debian
apt-get install util-linux
Ubuntu
apt-get install util-linux
Alpine
apk add util-linux
Arch Arch Linux
pacman -S util-linux
image/svg+xml Kali Linux
apt-get install util-linux
CentOS
yum install util-linux
Fedora
dnf install util-linux
Windows (WSL2)
sudo apt-get update sudo apt-get install util-linux
OS X
brew install util-linux
Raspbian
apt-get install util-linux
Docker
docker run cmd.cat/lslocks lslocks powered by Commando

List local system locks. More information: <https://manned.org/lslocks>.

  • List all local system locks:
    lslocks
  • List locks with defined column headers:
    lslocks --output PID,COMMAND,PATH
  • List locks producing a raw output (no columns), and without column headers:
    lslocks --raw --noheadings
  • List locks by PID input:
    lslocks --pid PID
  • List locks with JSON output to `stdout`:
    lslocks --json

© tl;dr; authors and contributors