Unix File Lock: flock By admin Posted on August 23, 2018 Posted in Unix Tagged with flock, lock file, script, unix To obtain a lock on a file, use flock command as per example: