watch dateExecutes the date command repeatedly to display the current system time in real time.
Runs a command repeatedly and shows its output full-screen, highlighting what changes between runs.
sudo apt install procpswatch dateExecutes the date command repeatedly to display the current system time in real time.
watch lsMonitors the contents of the current directory, updating every 2 seconds by default.
watch -hDisplays the help message summarizing available flags and usage syntax.
watch -vOutputs the version information of the watch utility.
watch -n 5 dateChanges the update interval to run the command every 5 seconds instead of the default.
watch --interval 10 uptimeUses the long-form flag to set a 10-second refresh rate for monitoring system uptime.
watch -n 0.1 ls -lSets a sub-second interval of 100 milliseconds for high-frequency monitoring.
watch -d dateHighlights the specific characters that change between updates to visualize differences.
watch --differences ls -lUses the long-form flag to highlight changes in file attributes or directory contents.
watch --differences=permanent dateKeeps changed highlights persistent on screen (cumulative) rather than clearing them.
watch -d=cumulative uptimeAccumulates highlights over time to track all changes that have occurred since start.
watch -t dateSuppresses the header line showing the interval and command to display only output.
watch --no-title lsRemoves the default title bar using the long-form flag for cleaner output.
watch -n 1 -t echo 'Custom Monitor'Runs a command without a header to create a simple static display or banner.
watch -e cat /tmp/status.txtFreezes the watch display if the command returns a non-zero exit code (error).
watch --errexit ls /root/secretStops updates immediately if the command fails, allowing the user to see the error.
watch -b /path/to/script.shEmits a beep sound if the command exits with a non-zero status code.
watch --beep ls /nonexistentAudible alert triggered repeatedly on every interval where the command fails.
watch "ps aux | grep nginx"Uses double quotes to pass a pipeline string to the shell for execution.
watch 'ls -l | wc -l'Uses single quotes to prevent local shell expansion and pass the pipe to the watch shell.
watch -n 1 "echo $RANDOM"Double quotes allow the variable to be expanded once at the start (static output).
watch -n 1 'echo $RANDOM'Single quotes ensure the variable is expanded inside the loop (dynamic output).
watch -x ls -lUses the exec flag to run the command directly without wrapping it in sh -c (if supported).
watch free -mMonitors system memory usage in megabytes in real time.
watch df -hTracks disk space usage across all mounted filesystems with human-readable sizes.
watch uptimeContinuously displays system load averages and uptime duration.
watch -n 1 "ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%cpu | head"Monitors the top CPU-consuming processes, updating every second.
watch -d "cat /proc/loadavg"Highlights changes in the raw system load average values from the proc filesystem.
watch ss -tulnMonitors listening TCP and UDP ports in real time.
watch -n 1 "netstat -an | grep ESTABLISHED"Tracks active established network connections updating every second.
watch ip addr showMonitors network interface status and IP address assignments.
watch -d "ip route show"Highlights any changes to the system routing table.
watch -n 5 wMonitors logged-in users and their current activities every 5 seconds.
watch -d "who"Highlights new user logins or logouts immediately.
watch "last -n 10"Constantly displays the last 10 login entries to catch recent access.
watch -n 1 "journalctl -n 10 --no-pager"Tails the systemd journal logs in real time without using a pager.
watch -d -n 0.5 "ls -la /tmp"Monitors the temporary directory at high speed to detect file drops during attacks.
watch -d "md5sum /etc/passwd"Tracks the checksum of a critical file to visually alert on integrity tampering.
watch -n 1 "ps -ef --forest"Visualizes the process tree hierarchy to spot suspicious parent-child relationships.
watch -d "ls -l /etc/cron.d /etc/cron.hourly"Monitors cron directories for the persistence mechanism creation.
watch -n 1 "lsof -i -P -n | grep LISTEN"Real-time tracking of listening ports to identify unauthorized services or backdoors.
watch -n 0.5 -d "cat /proc/interrupts"Monitors hardware interrupts to detect keylogging or device anomalies.
watch -n 1 "tail -f /var/log/auth.log"Simulates a dashboard for authentication logs to spot brute force attempts.
watch -n 300 /usr/local/bin/backup_check.shRuns a custom maintenance script every 5 minutes for passive monitoring.
watch -n 1 "dmesg | tail -n 20"Monitors the kernel ring buffer for hardware or driver errors.
watch -t -n 0.5 "echo 'System Status'; date; uptime"Combines multiple commands into a custom status dashboard with no header.
watch -c -n 1 "git status -s"Monitors a git repository for changes in real time, useful during development.
watch -g "pidof process_name"Waits for a specific process to start or stop by exiting when the PID list changes.
watch -n 1 'if [ -f /tmp/lock ]; then echo "Locked"; else echo "Open"; fi'Executes shell logic inside the watch loop to monitor application state files.
watch -d "stat -c '%y %n' *"Monitors modification timestamps of all files in the directory.
watch -n 0.2 "cat /sys/class/thermal/thermal_zone0/temp"High-frequency monitoring of CPU temperature sensors.
watch -p -n 0.1 -d -t ls -lCombines precision, sub-second interval, diff highlighting, and no title for minimal high-speed monitoring.
watch -c -n 5 -b /path/to/healthcheck.shRuns a colorized health check every 5 seconds and beeps if the check fails.
watch -g -n 2 "curl -s -I http://localhost:8080"Polls a local web server headers and exits if the response changes.
watch --differences=permanent --interval=1 "ps -eo pid,cmd,user | grep root"Permanently highlights new root processes appearing in the process list.
watch -n 1 'date +%T; echo "---"; uptime; echo "---"; free -h'Constructs a multi-section text dashboard using a single command string.
A live, sortable view of processes and system load, CPU and memory.
Prints the last lines of files and follows them as they grow — the standard way to watch logs.
The original terminal multiplexer: detachable sessions, multiple windows and serial-console access.
A terminal multiplexer: split windows into panes, keep sessions alive after disconnect and script complex layouts.