watch Flashcards

1
Q

watch

A

watch runs a command repeatedly, displaying its output and errors (the first screenfull).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly