I'm trying to get the status of a unit, but only the first 3 lines like this:
systemctl --user status resilio-sync --lines=3
I've tried various variations of this with -n 3 etc..., nothing works. And the strange part: it always shows the full log (13 lines), instead of 10 lines which should be the default according to the documentation for systemctl.
systemctl status confirms this: it just outputs all 45 lines to the terminal, when it actually should be 10.
Am I missing something here? As far as I know I didn't change anything.
As a workaround I'm currently using:
systemctl --user status resilio-sync | sed -ne '1,3p'
but I'd rather like to fix the underlying problem and use the native command. System is Kali Linux (re4son-kernel, sticky fingers) on a Raspberry Pi (easy to blame on this strange setup, but since this is core Linux functionality I don't think it should matter)