echo -e 'line1\nline2'

Category: Shell & Bash

echo -e 'line1\nline2'

Echo with escape sequence interpretation enabled

Prints text and interprets escape sequences: \\n becomes a newline, \\t becomes a tab, etc. -e enables interpretation.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.