sebastiancarlos@lemmy.sdf.org to Linux@lemmy.ml • 1 year agoHow to write a 'tar' commandimagemessage-square33 fedilinkarrow-up1399
arrow-up1399imageHow to write a 'tar' commandsebastiancarlos@lemmy.sdf.org to Linux@lemmy.ml • 1 year agomessage-square33 Commentsfedilink
minus-squarexinayder@infosec.pubhexbear1·1 year 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. linkfedilink
minus-squareFaresh@lemmy.mlhexbear2·1 year 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? linkfedilink
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?