source

img title=“I don’t know what’s worse–the fact that after 15 years of using tar I still can’t keep the flags straight, or that after 15 years of technological advancement I’m still mucking with tar flags that were 15 years old when I started.”

You are viewing a single thread.
View all comments
137 points

Wouldn’t tar --help suffice? Afaik, it returns exit code 0.

permalink
report
reply
49 points

Depends. Is it GNU tar, BSD tar or some old school Unix tar?

Double hyphen “long options” are a typical GNU thing.

permalink
report
parent
reply
13 points

That’s why those commands have two?

permalink
report
parent
reply
11 points

Yes, the terse Unix version, which needs to be supported for compatibility, and the more readable GNU long option

permalink
report
parent
reply
9 points

tar -h?

permalink
report
parent
reply
34 points
*
~# tar -h
tar: You must specify one of the '-Acdtrux', '--delete' or '--test-label' options
Try 'tar --help' or 'tar --usage' for more information.
***********************************************
WARNING: Self destruct sequence initiated
***********************************************

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 6.8K

    Monthly active users

  • 1.4K

    Posts

  • 32K

    Comments