You are not logged in.
Hello, I'm trying to replace the default pager, less, with most. However, journalctl seems to ignore the environment variables the man page says to use: https://man.archlinux.org/man/journalctl.1.en
I've set both environment variables:
PAGER=most
SYSTEMD_PAGER=most
And confirmed they are active in my shell. However, running journalctl still results in less being used as a pager.
I've also run:
SYSTEMD_PAGER=most journalctl
The only syntax that works is:
journalctl | most
I've also confirmed that other binaries do in fact use most as the pager, for example:
man journalctl
... opens properly in most.
Strange right? It seems like the jourtnalctl manpage is incorrect, or perhaps it runs under root, which has its own pager set?
Last edited by jamies (2022-11-20 18:00:14)
Offline
Hi and welcome to the forums!
Did you see/read the part about $SYSTEMD_PAGERSECURE in the manpage?
Last edited by dogknowsnx (2022-11-20 18:10:27)
Offline
Did you see/read the part about $SYSTEMD_PAGERSECURE in the manpage?
Whoa! I did not. Thanks so much.
If anyone else arrives, this works:
SYSTEMD_PAGERSECURE=1
SYSTEMD_PAGER=most
PAGER=most
And thanks for the warm welcome! Arch is the best!
Offline