Переглянути джерело

tail: add example using -s parameter. (#4180)

shyneko 4 роки тому
батько
коміт
94cb11e58d
1 змінених файлів з 4 додано та 0 видалено
  1. 4 0
      pages/common/tail.md

+ 4 - 0
pages/common/tail.md

@@ -21,3 +21,7 @@
 - Keep reading file until `Ctrl + C`, even if the file is rotated:
 
 `tail -F {{file}}`
+
+- Show last 'num' lines in 'file' and refresh every 'n' seconds:
+
+`tail -n {{num}} -s {{n}} -f {{file}}`