WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Fell in love with the WATCH command  (Read 1870 times)

Offline PDP-8

  • Hero Member
  • *****
  • Posts: 915
Fell in love with the WATCH command
« on: January 13, 2018, 05:13:52 AM »
Never used the WATCH command before and I dig it.

Was playing around with watching my cpu frequencies and came across a snippet in the Arch wiki docs, and I rewrote it a bit differently:

Code: [Select]
watch 'cat /proc/cpuinfo | grep MHz'
Single quotes, not back-ticks!  CTRL-C to stop it.

Pretty cool, although it doesn't beat Conky, but still awesome.  First time using it.

Of course you can do much more than just look at cpu freqs.  Grep your dmesg, other shell scripts, whatever.  Kind of a poor-man's notifier / debugger.  And, since we're running in ram with TC, there's no hit on any physical filesystem - nice.

« Last Edit: January 13, 2018, 05:17:10 AM by PDP-8 »
That's a UNIX book! - cool  -- Garth