Sfoglia il codice sorgente

tail: refresh page (#7681)

Emily Grace Seville 3 anni fa
parent
commit
27033a5d95
1 ha cambiato i file con 11 aggiunte e 10 eliminazioni
  1. 11 10
      pages/common/tail.md

+ 11 - 10
pages/common/tail.md

@@ -1,28 +1,29 @@
 # tail
 
 > Display the last part of a file.
+> See also: `head`.
 > More information: <https://www.gnu.org/software/coreutils/tail>.
 
-- Show last 'num' lines in file:
+- Show last 'count' lines in file:
 
-`tail -n {{num}} {{file}}`
+`tail --lines {{count}} {{path/to/file}}`
 
-- Show all file since line 'num':
+- Print a file from a specific line number:
 
-`tail -n +{{num}} {{file}}`
+`tail --lines +{{count}} {{path/to/file}}`
 
-- Show last 'num' bytes in file:
+- Print a specific count of bytes from the end of a given file:
 
-`tail -c {{num}} {{file}}`
+`tail --bytes {{count}} {{path/to/file}}`
 
-- Keep reading file until `Ctrl + C`:
+- Print the last lines of a given file and keep reading file until `Ctrl + C`:
 
-`tail -f {{file}}`
+`tail --follow {{path/to/file}}`
 
 - Keep reading file until `Ctrl + C`, even if the file is inaccessible:
 
-`tail -F {{file}}`
+`tail --retry --follow {{path/to/file}}`
 
 - Show last 'num' lines in 'file' and refresh every 'n' seconds:
 
-`tail -n {{num}} -s {{n}} -f {{file}}`
+`tail --lines {{count}} --sleep-interval {{seconds}} --follow {{path/to/file}}`