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

I've been using Cron for over 20 years. I still use https://crontab.guru rather than trying to remember the syntax for those fields.


Cron expressions aren't bad. Now regex.... nope.


For some reason regex just clicked for me very easily. Granted, I use regexr.com to check my work and tune it, but I find that the syntax just makes sense when I know what I want to find.


I can't even remember tar or find options reliably.


The only tar command I can remember reliably is this one:

    tar -tf ./archive.tar
It lists all of the files in the archive. I only remember it because of the mnemonic "tar the fuck is in this archive."


    journalctl -fu some-service
Also feels appropriate, because most of the time when I have to type in that command I'm thinking FU service file for not showing me by default why a service failed to start/restart.


Try tldr find or tldr tar for examples. Use fzf on history to find past success. Consider a toollike ouch [1] or fd instead of find.

[1] https://crates.io/crates/ouch




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

Search: