Tail

Tail of a Text File #1

In this challenge, we practice using the tail command to display the last n lines of a text file.

Display the last 20 lines of an input file.

tail -n 20

Tail of a Text File #2

In this challenge, we practice using the tail command to display the last 20 characters of a text file.

Display the last 20 characters of an input file.

tail -c 20

Last updated