39

In a long line in systemctl status it's necessary to scroll horizontally which makes it quite hard to copy the output. Is there a way to get linebreaks at the end of terminal (like nano -$ would do)?

I'm not looking for a workaround like redirecting the output into a temporary file and displaying it with an editor which supports the output.

I'm using Ubuntu 15.10.

Eliah Kagan
  • 119,640

1 Answers1

54

You could use the --no-pager option in conjunction with the --full option, which will force the lines to wrap:

systemctl status --no-pager --full

enter image description here

If you want to preserve the paging functionality, you can just pipe the output of systemctl status to less / more directly, since connecting the command's STDOUT to a pipe will force the command to print a raw output:

systemctl status | less
kos
  • 41,268