watch Flashcards
1
Q
watch
A
watch runs a command repeatedly, displaying its output and errors (the first screenfull).
![](https://s3.amazonaws.com/brainscape-prod/system/cm/313/352/197/a_image_thumb.png?1591409572)
2
Q
watch
- d
- n
- p
- t
- b
A
- d, –differences [permanent], Highlight the differences between successive updates.
- n, –interval seconds, Specify update interval.
- p, –precise, Make watch attempt to run command every interval seconds.
- t, –no-title, Turn off the header.
- b, –beep, Beed if command has a non-zero exit.
3
Q
watch
- e
- g
- c
- x
A
- e, –errexit, Freeze updates on command error, and exit after a key press.
- g, –chgexit, Exit when the output of command changes.
- c, –color, Interpret ANSI color and style sequences.
- x, –exec, Pass command to exec instead of sh -c which reduces the need to use extra quoting to get the desired effect.