mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-13 09:59:18 +00:00
Update cheatsheets
This commit is contained in:
25
watch
Normal file
25
watch
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# watch
|
||||
|
||||
> Execute a program periodically, showing output fullscreen.
|
||||
> More information: <https://manned.org/watch>.
|
||||
|
||||
- Repeatedly run a command and show the result:
|
||||
|
||||
`watch {{command}}`
|
||||
|
||||
- Re-run a command every 60 seconds:
|
||||
|
||||
`watch -n {{60}} {{command}}`
|
||||
|
||||
- Monitor the contents of a directory, highlighting differences as they appear:
|
||||
|
||||
`watch -d {{ls -l}}`
|
||||
|
||||
- Repeatedly run a pipeline and show the result:
|
||||
|
||||
`watch '{{command_1}} | {{command_2}} | {{command_3}}'`
|
||||
Reference in New Issue
Block a user