From 39dbcb99b31a2567fdf12591828f739d92f19053 Mon Sep 17 00:00:00 2001 From: Ford Hurley Date: Sat, 22 Feb 2014 16:49:40 -0500 Subject: [PATCH] Add tail.md --- common/tail.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 common/tail.md 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}}`