rsync -avzhP gang unite! I knew someone would have posted my standard flags
One trick that one of my students taught me a decade or so ago is to actually make an alias to list the useful flags.
Yes, a lot of us think we are smart and set up aliases/functions and have a huge list of them that we never remember or, even worse, ONLY remember. What I noticed her doing was having something like goodman-rsync that would just echo out a list of the most useful flags and what they actually do.
So nine times out of 10 I just want rsync -azvh --progress ${SRC} ${DEST} but when I am doing something funky and am thinking “I vaguely recall how to do this”? dumbman rsync and I get a quick cheat sheet of what flags I have found REALLY useful in the past or even just explaining what azvh actually does. And I just keep that in the repo of dotfiles I copy to machines I work on regularly.
JohnAnthony@lemmy.dbzer0.com 1 month ago
tal@olio.cafe 1 month ago
Most Unix commands will show a short list of the most-helpful flags if you use
--helpor-h.
muix@lemmy.sdf.org 1 month ago
tldrandatuinhave been my main way of remembering complex but frequent flag combinationsNuXCOM_90Percent@lemmy.zip 1 month ago
Yeah. There are a few useful websites I end up at that serve similar purposes.
My usual workflow is that I need to be able to work in an airgapped environment where it is a lot easier to get “my dotfiles” approved than to ask for utility packages like that. Especially since there will inevitably be some jackass who says “You don’t know how to work without google? What are we paying you for?” because they mostly do the same task every day of their life.
And I do find that writing the cheat sheet myself goes a long way towards me actually learning them so I don’t always need it. But I know that is very much how my brain works (I write probably hundreds of pages of notes a year… I look at maybe two pages a year).