diff --git a/common/tail.md b/common/tail.md new file mode 100644 index 0000000000..365cc6e03f --- /dev/null +++ b/common/tail.md @@ -0,0 +1,15 @@ +# tail + +> Display the last part of a file + +- show last 'num' lines in file + +`tail -n {{num}} {{file}}` + +- show last 'num' bytes in file + +`tail -c {{num}} {{file}}` + +- keep reading file until ctrl-c + +`tail -f {{file}}`