Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 1. `systemctl status nginx.service` suffices in many cases. journalctl is for when you need to dig deeper, and it demands many more options. You would have complained about "too noisy CLI arguments" if these were unified.

I'm not at all a systemd hater (I think it was needed and it's nowadays a very solid piece of software) but the logs thing should be totally tweakable when viewing it from `systemctl status` and it is n.... [goes to check the man page]

  -n, --lines=
           When used with status, controls the number of journal lines to show, counting from the most recent ones. Takes a positive integer argument, or 0 to disable journal output. Defaults to 10.

Oooh, so TIL.


OMG, TIL, too. This made my morning.


As always RTFM applies - or at least glance through it at high speed.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: