Linux · November 8, 2026 head and tail on Linux: Show First and Last Lines of Files Use head and tail on Linux: head -n 20 start of logs, tail -n 50 end, head for… Read tutorial →