@sebastiancarlos to Linux@lemmy.mlEnglish • 1 year agoHow to write a 'tar' commandlemmy.sdf.orgimagemessage-square159arrow-up1859arrow-down117
arrow-up1842arrow-down1imageHow to write a 'tar' commandlemmy.sdf.org@sebastiancarlos to Linux@lemmy.mlEnglish • 1 year agomessage-square159
minus-square@d00phy@lemmy.mllinkfedilink15•1 year agoThe “-“ is often not necessary. I use it as a guide to see how long the person running tar has been using it. Example: tar -xf file.tar == tar xf file.tar
minus-squareFushuan [he/him]linkfedilinkEnglish5•edit-21 year agoThey are functionally flags though and uniletter flags should be preceded by a ‘-’, so I would still prefer to have the ‘-’ written, because it conforms with the standard.
minus-square@superbirra@lemmy.worldlinkfedilink1•1 year agoyeah, you can also ditch that f tar c /etc/passwd > fu.tar tar t < fu.tar tar x < fu.tar
The “-“ is often not necessary. I use it as a guide to see how long the person running tar has been using it.
Example:
tar -xf file.tar == tar xf file.tar
They are functionally flags though and uniletter flags should be preceded by a ‘-’, so I would still prefer to have the ‘-’ written, because it conforms with the standard.
But muh POSIX
yeah, you can also ditch that f
tar c /etc/passwd > fu.tar
tar t < fu.tar
tar x < fu.tar