Linux command
viddy 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Watch a command with default interval
viddy '[ls -la]'
Watch with diff highlighting
viddy -d '[df -h]'
Watch with a custom interval
viddy -n [5] '[command]'
说明
viddy is a modern replacement for the Unix watch command. It executes commands periodically and displays results with colored output and diff highlighting. Its standout feature is time machine mode, which lets you rewind through past command outputs. Press Space to toggle time machine mode, then use arrow keys to navigate history. Includes vim-like keybindings and a pager.
参数
- -n, --interval _SECONDS_
- Command execution interval (default: 2)
- -d, --differences
- Highlight differences between updates
- -t, --no-title
- Disable header display
- -b, --bell
- Ring bell on command error
- -p, --precise
- Precise timing mode
- -s, --skip-empty-diffs
- Skip updates when output has not changed
FAQ
What is the viddy command used for?
viddy is a modern replacement for the Unix watch command. It executes commands periodically and displays results with colored output and diff highlighting. Its standout feature is time machine mode, which lets you rewind through past command outputs. Press Space to toggle time machine mode, then use arrow keys to navigate history. Includes vim-like keybindings and a pager.
How do I run a basic viddy example?
Run `viddy '[ls -la]'` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -n, --interval _SECONDS_ do in viddy?
Command execution interval (default: 2)