What does Linux watch -x or –exec option do?

You can use watch -x or –exec option to pass command to exec(2) instead of sh -c which reduces the need to use extra quoting to get the desired effect.

Example:

Leave a Reply