Intermediate Linux & Shell Scripting
Q78 / 100

What is the purpose of "watch" command, e.g. "watch -n 2 df -h"?

Correct! Well done.

Incorrect.

The correct answer is A) It repeatedly executes a given command at a specified interval (in seconds) and displays the output full-screen, refreshing each time, useful for monitoring changing data

A

Correct Answer

It repeatedly executes a given command at a specified interval (in seconds) and displays the output full-screen, refreshing each time, useful for monitoring changing data

Explanation

"watch -n 2 df -h" re-runs "df -h" every 2 seconds and displays the updated output in place, making it convenient for monitoring resources like disk space or process lists in real time.

Progress
78/100