LainTrain@lemmy.dbzer0.com to linuxmemes@lemmy.worldEnglish · 6 months agoOld XKCD, still relevantlemmy.dbzer0.comimagemessage-square156fedilinkarrow-up1894arrow-down114file-text
arrow-up1880arrow-down1imageOld XKCD, still relevantlemmy.dbzer0.comLainTrain@lemmy.dbzer0.com to linuxmemes@lemmy.worldEnglish · 6 months agomessage-square156fedilinkfile-text
minus-squarearc@lemm.eelinkfedilinkarrow-up9·6 months agoI know tar zxf and xjf off by heart. I probably do 100x as many extracts as creates. Tar is a stupidly antiquated command though.
minus-squareflying_sheep@lemmy.mllinkfedilinkarrow-up6·edit-26 months agoWhy remember/include the algorithm? Tar can infer that. It’s just bsdtar xf filename.* for everything. (bsdtar handles .zip as well)
minus-squareflying_sheep@lemmy.mllinkfedilinkarrow-up1·edit-26 months agoYes, and tar works the same, it just doesn’t handle zip files. And even if we’re pedantic: bsdtar is Arch Linux’ executable name for a port of the tar command that is shipped by BSDs, so it’s also tar.
I know tar zxf and xjf off by heart. I probably do 100x as many extracts as creates. Tar is a stupidly antiquated command though.
Why remember/include the algorithm? Tar can infer that. It’s just
bsdtar xf filename.*
for everything. (bsdtar handles .zip as well)The bomb said tar.
Yes, and tar works the same, it just doesn’t handle zip files.
And even if we’re pedantic: bsdtar is Arch Linux’ executable name for a port of the
tar
command that is shipped by BSDs, so it’s alsotar
.