Tail Command

Written on: November 15, 2022 10:57 am

What is the tail command?

The tail command is used to display the last n lines of a specified file.  By default the tail command displays the last 10 lines of a file.  This can be changed by using the -n argument and specifying a new value.  If the specified file does not contain at least n lines then a the .bak version of the file will be prepended, if it exists.

Another powerful feature of the tail command is its ability to monitor and display file changes in real-time.  The specified file in monitored for changes once a second and only the changed portion of the file is displayed.


tail [OPTION]... [FILE]...
Short OptionsLong OptionOption ValueDescription
-n–linesNUMBERThe number of lines that should be displayed from the end of the file
-f–followMonitor the file in real-time

Default Usage

The default usage will show the last 10 lines of the specified file.

Specify number of lines to show

We can use the -n or --lines option to specify 20 lines.

Update the file in real-time

Use -f or --follow to follow the file in real-time.  New entries will be displayed.  This command will not return to the prompt until ANY key is pressed.

How to Install tail

There are multiple ways to get tail on your JNIOR.

Update Project

[Download not found]
Name Version Release Date Size MD5


You can issue the following jrget command from the command line. Go to the getting started with the jrget utility post to learn how to use the command line tool if you need help.

jrget tail
By | Updated On November 15, 2022 4:56 pm | No Comments | Categories: | Tags:


INTEG Process Group, inc. © 2022

Mon - Fri, 8am - 4pm EST
P: 724-933-9350
Always Available
Contact Form