echo -n 'no newline'

Category: Shell & Bash

echo -n 'no newline'

Echo without a trailing newline

Prints text without adding a newline at the end — useful when you want the cursor to stay on the same line.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.