Monitor the Result of a Command

Tagged with: , , , , ,

Monitor the result of some command by looping it an infinite while loop. To quit, press Ctrl+C. Thanks to Sreenath for this tip.


while [ 1 ]; do ls -l; sleep 2; done

One Response to “Monitor the Result of a Command

  • 1
    Carb0n
    October 11th, 2008 10:11

    There’s a better one… watch(1)

    Hmm.. if you’re on a laptop and you want to know how much its heating up

    $ watch acpi -V

    How’s the network doing?

    $ watch ifconfig eth0

Leave a Reply