Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

tail

Output last part of files

Syntax

tail [OPTION]... [FILE]...

Common Options

-nShow last N lines
-fFollow file changes
-cShow last N bytes

Common Examples

tail file.txt

Show last 10 lines

tail -f /var/log/syslog

Follow log in real-time

tail -n 50 file.txt

Show last 50 lines

Related Commands

Related Tools

More Code & Dev Tools