PLAY PODCASTS
'tail' - print the ending of files - Video Man Pages

'tail' - print the ending of files - Video Man Pages

DistroTube on Odysee

March 16, 20265m 0s

Audio is streamed directly from the publisher (player.odycdn.com) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.

Show Notes

thumbnail

The 'tail' command is used to print the ending lines of a file.

- Print last 10 lines in a file:
tail path/to/file

- Print last 10 lines of multiple files:
tail path/to/file1 path/to/file2 ...

- Print last 5 lines (-n 5) in file:
tail -n 5 path/to/file

- Print a file starting from line number 5 (-n +5):
tail -n +5 path/to/file

- Print the first 12 bytes (-c 12) from the end of a given file:
tail -c 12 path/to/file

- Print the last lines of a given file and keep reading it (following it) until CTRL-C:
tail -f path/to/file
NOTE Useful if running 'tail' on a file that is being appended constantly.

- Show last 5 lines (-n 5) in a file, follow for changes (-f), and check every 5 seconds (-s 5):
tail -n 5 -s 5 -f path/to/file

- Use verbose mode (-v) to print headers giving file names:
head -v file1
NOTE When running 'tail' on multiple files, verbose is the default mode.

- Use quiet mode (-q) to suppress the printing of headers giving file names:
head -q file1 file2
NOTE When running 'tail' on a single file, quiet is the default mode.

REFERENCED:
โ–บ https://gitlab.com/dwt1/vidman - Video Man Pages

WANT TO SUPPORT THE CHANNEL?
๐Ÿ’ฐ Patreon: https://www.patreon.com/distrotube
๐Ÿ’ณ Paypal: https://www.paypal.com/donate/?hosted_button_id=MW3ZFGS8Q9JGW
๐Ÿ›๏ธ Amazon: https://amzn.to/2RotFFi
๐Ÿ‘• Teespring: https://teespring.com/stores/distrotube

DT ON THE WEB:
๐Ÿ•ธ๏ธ Website: http://distro.tube
๐Ÿ“ GitLab: https://gitlab.com/dwt1
๐Ÿ—จ๏ธ Mastodon: https://fosstodon.org/@distrotube
๐Ÿ‘ซ Reddit: https://www.reddit.com/r/DistroTube/
๐Ÿ“ฝ๏ธ Odysee: https://odysee.com/@DistroTube:2

FREE AND OPEN SOURCE SOFTWARE THAT I LIKE:
๐ŸŒ Brave Browser - https://brave.com/
๐Ÿ“ฝ๏ธ Open Broadcaster Software: https://obsproject.com/
๐ŸŽฌ Kdenlive: https://kdenlive.org
๐ŸŽจ GIMP: https://www.gimp.org/
๐Ÿ’ป VirtualBox: https://www.virtualbox.org/
๐Ÿ—’๏ธ Doom Emacs: https://github.com/hlissner/doom-emacs

Your support is very much appreciated. Thanks, guys!
...
https://www.youtube.com/watch?v=Ug5u1OT1sxQ