5 ms·
For 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 -
by aw3c2 11y ago
For 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.