brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: journalctl --no-full cuts long log lines to fit your terminal

Journalctl
~/tips/tip-journalctl-no-full-ellipsize-lines

journalctl --no-full -u myapp

Shortens log lines that do not fit the terminal width so a list stays scannable.

A single very long line can ruin a whole screen of output.

--no-full ellipsizes fields that do not fit in the available columns. The default is to show full fields and let them wrap or be cut off by the pager. For an overview of a chatty service the shortened version is easier to scan.

journalctl --no-full -u myapp

You lose the end of the line, so run the command again without the flag when you need the whole message. The old -l and --full only undo this one.

Further reading: journalctl(1) manual page

More Journalctl tips journalctl -k -g 'killed process' --since "2 days ago" journalctl _PID=1 -b ls -lh /var/log/journal/*/*.journal~ Storage=volatile sudo journalctl --setup-keys All Journalctl tips (81) All topics

Link