These locks are compatible with the command line utility flock, which comes preinstalled with most Linux distributions.