소스 검색

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}}`