From 8d5954268d09a7ed53e30b2c5e05d8628139fb73 Mon Sep 17 00:00:00 2001 From: Florent Munch Date: Fri, 1 Nov 2013 15:42:56 +0100 Subject: [PATCH] Added tail cheatsheet --- cheatsheets/tail | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 cheatsheets/tail diff --git a/cheatsheets/tail b/cheatsheets/tail new file mode 100644 index 0000000..7b9a4dc --- /dev/null +++ b/cheatsheets/tail @@ -0,0 +1,14 @@ +# To show the last 10 lines of file +tail file + +# To show the last N lines of file +tail -n N file + +# To show the last lines of file starting with the Nth +tail -n +N file + +# To show the last N bytes of file +tail -c N file + +# To show the last 10 lines of file and to wait for file to grow +tail -f file