this post was submitted on 06 Jun 2024
923 points (99.0% liked)

linuxmemes

19653 readers
2052 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 185 points 3 weeks ago* (last edited 3 weeks ago) (8 children)
[–] [email protected] 225 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

tar -h

Edit: wtf... It's actually tar -?. I'm so disappointed

[–] [email protected] 216 points 3 weeks ago (1 children)
[–] ekZepp 77 points 3 weeks ago* (last edited 3 weeks ago)
[–] [email protected] 105 points 3 weeks ago (2 children)
[–] [email protected] 27 points 3 weeks ago (1 children)

Me trying to decompress a .tar file

[–] bhamlin 5 points 2 weeks ago (1 children)

Joke's on you, .tar isn't compression

[–] [email protected] 4 points 2 weeks ago

That's not going to stop me from getting confused every time I try!

[–] [email protected] 18 points 3 weeks ago (2 children)

You don't need the v, it just means verbose and lists the extracted files.

[–] jj4211 8 points 3 weeks ago (2 children)

You don't need the z, it auto detects the compression

[–] [email protected] 6 points 2 weeks ago

Yeah, I just tell our Linux newbies tar xf, as in "extract file", and that seems to stick perfectly well.

[–] bhamlin 2 points 2 weeks ago (1 children)

That's still kinda new. It didn't always do that.

[–] jj4211 5 points 2 weeks ago (2 children)

Per https://www.gnu.org/software/tar/, it's been the case since 2004, so for about 19 and a half years...

[–] [email protected] 6 points 2 weeks ago (1 children)

Telling someone that they are Old with saying they are old…

[–] bhamlin 4 points 2 weeks ago

Something something don't cite the old magics something something I was there when it was written...

[–] bhamlin 6 points 2 weeks ago

Right, but you have no way of telling what version of tar that bomb is running

[–] bhamlin 8 points 2 weeks ago

You may not, but I need it. Data anxiety is real.

[–] [email protected] 60 points 3 weeks ago (4 children)

tar -xzf

(read with German accent:) extract the files

[–] [email protected] 28 points 3 weeks ago

Ixtrekt ze feils

[–] ichbinjasokreativ 19 points 3 weeks ago (1 children)

German here and no shit - that is how I remember that since the first time someone made that comment

[–] [email protected] 6 points 3 weeks ago (1 children)
[–] [email protected] 3 points 2 weeks ago

Not German but I remember the comment but not the right letters so I would have killed us all.

[–] [email protected] 5 points 3 weeks ago

That’s so good I wish I needed to memorize the command

[–] [email protected] 1 points 2 weeks ago

z is for gzip archives only.

tar xf for eXtract the File

[–] [email protected] 21 points 3 weeks ago* (last edited 3 weeks ago)

tar -uhhhmmmfuckfuckfuck

[–] Waffelson 8 points 2 weeks ago (1 children)

The Fish shell shows me just the past command with tar So I don't need to remember strange flags

[–] [email protected] 4 points 2 weeks ago

I use zsh and love the fish autocomplete so I use this:

https://github.com/zsh-users/zsh-autosuggestions

Also have fzf for ctrl + r to fuzzy find previous commands.

I believe it comes with oh-my-zsh, just has to be enabled in plugins and itjustworks™

[–] [email protected] 7 points 3 weeks ago

man tar

you never said I can't run a command before it.

[–] [email protected] 1 points 3 weeks ago (1 children)

without looking, what’s the flag to push over ssh with compression

[–] [email protected] 4 points 3 weeks ago (1 children)
[–] [email protected] 1 points 3 weeks ago

not compressed by default