4 ms·
Wow, the twitter replies suggesting this was an accidental "tar cvf * backup.tar" sound right on the mark. Especially considering favicon.ico is probably the fi
by 0x0 11y ago
Wow, the twitter replies suggesting this was an accidental "tar cvf * backup.tar" sound right on the mark. Especially considering favicon.ico is probably the first file in a wp install, alphabetically.
- s_kilk 11y agoThis is my new favorite bug/mistake. It's just exquisite.
- jfb 11y agoIt really has it all, doesn't it?
- aw3c2 11y agoFor everyone struggling with tar, please be aware that you can use long-form arguments. So instead of "tar cvf filename files" you use "tar --create --verbose --file file.tar files" or maybe another order like ""tar --create --file file.tar --verbose files"- It is much more sensible and intuitive.
- andrepd 11y agoOnce you've used it more than once or twice, however, you will find that writing cfv is much more convenient than typing --create --verbose --file every time you want to tar something.
- sp332 11y agoBut if it's code you're only writing once - like in a script - you might consider using the longer ones to avoid screw ups and improve maintainability.
- tomphoolery 11y agoalways use long form flags when writing scripts...have some consideration for the person who has to fix your code when you move on
- icc97 11y agothere's an xkcd for that...: https://xkcd.com/1168/ https://xkcd.com/1168/
- aw3c2 11y agoI doubt that the creator or the promoters of the meme know about the long-form parameters. They make sense.