flock(1) - Linux man page Name flock - Manage locks from shell scripts Synopsis flock [ -sxon ] [ -w timeout ] lockfile [ -c ] command... flock [-sxon] [-w timeout] lockdir [-c] command... flock [-sxun] [-w timeout] fd Description This utility manages flock(2) locks from within shell scripts or the command line. The first and second forms wraps the lock around the executing a command, in a manner