sebastiancarlos@lemmy.sdf.org to Linux@lemmy.mlEnglish · 10 months agoHow to write a 'tar' commandlemmy.sdf.orgimagemessage-square158fedilinkarrow-up1857arrow-down117
arrow-up1840arrow-down1imageHow to write a 'tar' commandlemmy.sdf.orgsebastiancarlos@lemmy.sdf.org to Linux@lemmy.mlEnglish · 10 months agomessage-square158fedilink
minus-squarexinayder@infosec.publinkfedilinkarrow-up1·10 months agoDon’t you have to specify the compression algorithm when extracting? I always use tar -xzf for gzip files and if I remove -z it just fails.
minus-squareFaresh@lemmy.mllinkfedilinkEnglisharrow-up2·10 months agoI’ve been using only xf for a long time now. Don’t remember ever getting an error from it in the last years. Maybe tar can now check the magic number or something to figure out what the format is?
Don’t you have to specify the compression algorithm when extracting? I always use
tar -xzf
for gzip files and if I remove -z it just fails.I’ve been using only
xf
for a long time now. Don’t remember ever getting an error from it in the last years. Maybe tar can now check the magic number or something to figure out what the format is?