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

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.



use 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)


Keep 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.


AI 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


You 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.


I keep a per project file like that with common commands and related things.




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

Search: