9 ms·
I am not a sysadmin -- so I keep forgetting the command to see logs cause I only need it once every 3 months. So, systemd change is a pain for me.
by iambvk 1y ago
I am not a sysadmin -- so I keep forgetting the command to see logs cause I only need it once every 3 months.
So, systemd change is a pain for me.
- slashdev 1y agoAI is so helpful for doing those kinds of tasks in the terminal that you only do a couple times a year and can never remember the exact incantation
- hundchenkatze 1y agoYou only need to look those things up once, put it in a snippets.txt file, and then search in the file when you need it.
- slashdev 1y agoI keep a per project file like that with common commands and related things.
- hearsathought 1y agoKeep a file with a list of commands used semi-regularly. Or have a script dump your command history into a file. Better to spend a minute searching for a command in a file than to waste an hour recreating it.
- akdev1l 1y agouse a shell function/alia? show-logs() { journalctl -u "$1" } show-logs nginx (Not that I think journalctl -u even needs an alias tbh but if you want it you can have it)