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

I personally find journalctl -fu $service very cathartic, because I'm almost always typing this command when $service isn't working.


I really need to alias `journalctl -fu` to something because it's always so tedious to type all that out over and over when I'm trying to debug something. Also, is there any autocomplete for systemd unit names? Typing `journalctl -fu amazon-cloudwatch-agent` over and over and over is so much more tedious--ideally it would be something closer to `jctl amaz<tab>`.


There is autocompletion. It works by default on Pop OS and Debian. (You may need to install bash-completion and/or dbus if your install is very minimal.)


I do get autocomplete for even that with bash (on nixos). Tried to have a look at my config, but I forgot what enables that, but it is a game changer.




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

Search: