▲ 819 ▼ How to write a 'tar' command (lemmy.sdf.org) submitted 2 years ago by sebastiancarlos@lemmy.sdf.org to c/linux@lemmy.ml 146 comments fedilink hide all child comments
[–] d00phy@lemmy.ml 14 points 2 years ago (3 children) 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 permalink fedilink source hideshow 6 child comments replies: [–] fushuan@lemm.ee 5 points 2 years ago* 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. permalink fedilink source parent [–] Ricaz@lemmy.ml 3 points 2 years ago But muh POSIX permalink fedilink source parent [–] superbirra@lemmy.world 1 point 2 years ago yeah, you can also ditch that f tar c /etc/passwd > fu.tar tar t < fu.tar tar x < fu.tar permalink fedilink source parent
[–] fushuan@lemm.ee 5 points 2 years ago* 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. permalink fedilink source parent
[–] superbirra@lemmy.world 1 point 2 years ago yeah, you can also ditch that f tar c /etc/passwd > fu.tar tar t < fu.tar tar x < fu.tar permalink fedilink source parent