Cmd Generator

tail

Output the last part of files.

tail

Examples

# Show last 10 lines
tail /var/log/syslog

# Follow log
tail -f /var/log/syslog

# Show last 50 lines
tail -n 50 /var/log/syslog

# Show last 100 bytes
tail -c 100 file.txt

Sponsors