You are not logged in.
Hello,
How can I have line breaks in the journalctl log output?
At the moment I cannot read most of the log output because it does not fit into my terminal.
See this screenshot: http://i.imgur.com/nUR6Fae.png
Thanks!
Last edited by orschiro (2013-09-20 08:08:04)
Offline
Don't use '--no-pager' and use keyboard arrow keys to scroll.
Edit: With '--no-pager' you can redirect it to e.g. less and they will nicely wrap around.
Last edited by karol (2013-09-20 07:49:42)
Offline
I am not talking about vertical but horizontal fit. Sorry that it was unclear.
What happens if you press the right arrow?
Offline
Nice, it scrolls to the right! I did not know that I can navigate with the arrow keys. I was always using j and k for that.
Nevertheless it would be nice to have line breaks. Is that possible?
Offline
You can run
journalctl -b --no-pager | less
Edit: If you hit 'h' you get help screen
SUMMARY OF LESS COMMANDS
<snip>
ESC-) RightArrow * Left one half screen width (or N positions).
ESC-( LeftArrow * Right one half screen width (or N positions).
<snip>
It may be possible to configure the way the journal uses the pager so it wraps the lines by default.
Edit 2: Or maybe it can't be configured.
The output is paged through less by default, and long lines are "truncated" to screen width. The hidden part can be viewed by using the left-arrow and right-arrow keys. Paging can be disabled, see --no-pager and section Environment below.
Last edited by karol (2013-09-20 08:02:13)
Offline