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.
So, systemd change is a pain for me.
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)Better to spend a minute searching for a command in a file than to waste an hour recreating it.