11 ms·
I wish systemctl were 6 characters or less. Having to type it over and over and over again when doing some sysadmin-y task gets really annoying.
by stormbrew 5y ago
I wish systemctl were 6 characters or less. Having to type it over and over and over again when doing some sysadmin-y task gets really annoying.
- qbasic_forever 5y agoJust make an alias in your bachrc.
- ape4 5y agoWindows has `sc` which is actually short for Service Control!
- stormbrew 5y agoI use too many computers I don't control for this to be something I want to get invested in.
- BenjiWiebe 5y agoWhen I'm troubleshooting using systemctl, I make some aliases right then and there. alias r=sudo systemctl restart alias s=sudo systemctl status Or something like that. It's pretty quick to define and redefine aliases on the fly.
- stormbrew 5y agoYeah that's fair. Definitely a habit I should pick up.
- Arnavion 5y ago"s y s Tab c Tab" works for me.
- stormbrew 5y agoI dunno why but it galls me even more when I have to repeatedly tab complete to get to a really common command.
- outworlder 5y agoDo you really have to type it over and over again? There's probably a few tasks there that need automation.
- stormbrew 5y agoit's usually when I'm actively debugging something. And it involves flipping back and forth between journalctl and systemctl, which are both long and prone to interference in tab completion and yet similar enough to each other to cause some cognitive dissonance. I mean, it's a really petty complaint, I'm aware. But I'm also usually already annoyed when I have to reach for it. upstart's initctl, or even sysv/bsd-style /etc/init.d/whatever for various reasons felt less tedious. sv from daemontools is the benchmark though.
- db48x 5y agoalias s=systemctl Also, instead of switching back and forth, use tmux. Open a second pane, splitting your window in half. Run journalctl in one half, and your systemctl commands in the other.
- stormbrew 5y agoTo clarify for anyone else who wants to reply to this with helpful suggestions: I know how to use tmux. And how to use shell aliases (though I probably don't use them enough). I've been around, first used linux in 1994 kind of thing. I don't really need help, this was just a kind of petty whine.