sytemctl status log output
Two options:
PAGER=cat systemctl status service1 service2 service3
-
systemctl --no-pager status service1 service2 service3
Explanation:
Those lines 1-62
messages are produced by a pager program, the commonly used ones are more
and less
. Pager programs intend to make output more user-friendly, scrollable, etc. They are especially important on less feature-rich terminal emulators.
The pager program to use is controlled by PAGER
environment variable. By setting PAGER
to cat
we replace fancier more
or less
with a much more simple pager which actually does not do any paging.
Alternative is to pass --no-pager
to systemctl
which tells it not to invoke pager program at all.