Bonus question: With or without - ?

45 points
Removed by mod
permalink
report
reply
21 points

tar -help

Wait no fuc-
#BOOM

permalink
report
parent
reply
11 points

The coward’s way out

permalink
report
parent
reply
3 points

See, I would have man tar’d, and died.

permalink
report
parent
reply
3 points

That’s on you. You were supposed to input a tar and not a man command

permalink
report
parent
reply
1 point
Deleted by creator
permalink
report
parent
reply
16 points
*

When I point an (un)packing program at a packed archive, the default action should be to fucking unpack it.
And when I point it at anything else, it should pack it into the default format.

Everything else can be options.

permalink
report
reply
9 points

The problem is, tar isn’t a packing program, it’s a tape archive program that’s been repurposed for general files-to-file archival with optional compression plugins

At this point, if it were written today, it probably would behave as you suggest, but changing it now would break too many things that use it

permalink
report
parent
reply
6 points

Then it would’ve been time to deprecate it for this purpose, and use something sensible instead, say about 13 years ago.
All the old stuff can then keep using tar, but the nicer option can become the standard for user-friendly file extraction.

permalink
report
parent
reply
-3 points
*

“The world should conform to my expectations, not long-standing conventions!”

But if you engage your thinking meat, you might just discover the magic of alias untar='tar xvf'.

permalink
report
parent
reply
11 points
*

“long-standing conventions” is how you end up with Internet Explorer still pre-installed on Windows Server 2025.
And when was the last time you used the tar “tape archiver” to archive things on tape?

permalink
report
parent
reply
11 points

Magnetic tapes are still being used as long-term storage, as backups for example. They are inexpensive, compact, have zero moving parts, and are more durable than optical media. All you have to do is keep them in a location that is around room temperature, relatively dry, and away from magnets.

But that’s not really what tar does. It simply collects the input files and writes them to a single contiguous data stream – a file not unlike an actual tape. It’s worked like that for, I shit you not, 45 years, and it is very much a single project holding up modern technology situation. I fear to imagine what would happen if it were to change.

permalink
report
parent
reply
4 points

You may not have heard this, but tar can be used to work with non-tape archives.

In fact, non-tape archives are the overwhelmingly popular workflow.

permalink
report
parent
reply
-3 points

Why are long standing conventions a good thing? Slavery was a longstanding convention.

permalink
report
parent
reply
4 points

No human rights are violated by tar functioning the way it does, but changing it would cause a lot of problems without good reason since you could just as easily write an alias or wrapper to simplify the usage

permalink
report
parent
reply
11 points

-xzf extract ze file

permalink
report
reply
1 point

Zip file.

permalink
report
parent
reply
10 points
Removed by mod
permalink
report
reply
2 points

xvzf would extract, verbose, unzip file [filename]

permalink
report
parent
reply
6 points

dtrx = Do The Right eXtraction

Check your local package manager

permalink
report
reply

Linuxsucks

!linuxsucks@lemmy.world

Create post

Rules:

  1. FOSS advocates and Linux evangelists aren’t welcome. -We ask that you block us.
  2. Moderation is heavy handed. Try to stay on topic (that is LINUXSUCKS!).
  3. No Complaining Mute the sub if users, content, or rules bother you *it’s ok to report rule violations

Community stats

  • 966

    Monthly active users

  • 294

    Posts

  • 1.2K

    Comments