What is the default number of lines for `tail -n`?

0110

The default number of lines displayed by the tail -n command is 10. If you run the tail command without specifying the -n option, it will automatically show the last 10 lines of the specified file.

Example

If you simply execute:

tail example.txt

This will output the last 10 lines of example.txt. If you want to display a different number of lines, you can specify it using the -n option, like so:

tail -n 5 example.txt

This command will show the last 5 lines of the file.

If you have any more questions or need further clarification, feel free to ask!

0 Comments

no data
Be the first to share your comment!