macOS
brew install watchlocal Homebrew formula metadata
sudo port install watchMacPorts ports tree · sysutils/watch/Portfile · 来源: api.github.com
安装
brew install watchlocal Homebrew formula metadata
sudo port install watchMacPorts ports tree · sysutils/watch/Portfile · 来源: api.github.com
winget install --id 54145a.145watch -eWindows Package Manager source index · 54145a.145watch · 来源: cdn.winget.microsoft.com
概览
Executes a program periodically, showing output fullscreen
历史
watch is the small terminal utility that reruns a command at an interval and redraws the first screenful of output. In practice it is a Unix operator's ad-hoc dashboard: useful for repeatedly inspecting process state, kernel values, logs, queues, counters, or any shell pipeline whose output changes over time.
The current procps-ng source keeps a compact lineage in the watch source header: it is based on Tony Rems's original 1991 watch, with later modifications by Francois Pinard; Mike Coleman, Albert Cahalan, Morty Abzug, Jarrod Lowe, Sami Kerola, Jim Warner, Craig Small, and Roman Zilka appear in the copyright and feature history. That lineage explains why a tiny command has accumulated practical terminal behavior over decades rather than becoming a new standalone project.
watch is maintained today as part of procps/procps-ng, the Linux /proc-oriented utility collection that also includes ps, top, free, vmstat, pgrep, pkill, uptime, w, and related tools. The procps-ng NEWS file records the 3.3.0 fork by Debian, Fedora, and openSUSE maintainers from procps, followed by steady watch-specific work such as Unicode and ANSI color handling, no-wrap mode, precise intervals, no-rerun-on-resize, equal-output exit behavior, 256-color support, and the more recent follow mode.
The standard manual describes watch as running a command repeatedly, defaulting to a two-second interval, until interrupted. Its core options cover interval control, highlighting differences between refreshes, exiting when output changes or stabilizes, treating the command as exec rather than shell text, preserving or suppressing the title header, interpreting color, and reacting to non-zero command exits.
Typical package-nerd use is not limited to process monitoring. Users wrap arbitrary shell fragments: `watch -d ls -l`, `watch uname -r`, a pipeline over `/proc/cpuinfo`, a ping loop, a queue-depth check, or a package-build directory listing. Because the command is usually passed through `sh -c`, watch composes naturally with shell quoting, pipes, redirects, and text filters.
watch matters because it is the minimal repeat loop with terminal ergonomics. It occupies the space between a one-off command and writing a monitoring script: no daemon, no UI framework, no config, just a refresh interval, a screen, and a shell command. That makes it a fixture in build troubleshooting, service bring-up, kernel and container debugging, and package maintainer workflows where quick visual feedback beats a permanent monitoring stack.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
watch | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:watch |
|---|---|
| 版本 | 4.0.6 |
| 软件包管理器 | Homebrew |
| 主页 | https://gitlab.com/procps-ng/procps |
| Bottle | 未记录 |
| 服务 | 未声明 |
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
watch
sudo port install watch54145a.145watch
winget install --id 54145a.145watch -eJapplis.Watch
winget install --id Japplis.Watch -eechocat.watch
winget install --id echocat.watch -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.