this post was submitted on 14 Nov 2026
722 points (98.5% liked)

linuxmemes

33535 readers
287 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry of any kind will not be tolerated. This is an LGBTQ+-friendly community -- if that is a problem for you, you should leave.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • Don't come looking for advice, this is not the right community.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves / tolerates / hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • Β 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 3 years ago
    MODERATORS
     
    Tradional Usage
      tar {A|c|d|r|t|u|x}[GnSkUWOmpsMBiajJzZhPlRvwo] [ARG...]
    

    It is invigorating.

    top 50 comments
    sorted by: hot top controversial new old
    [–] akunohana@piefed.blahaj.zone 146 points 1 week ago (20 children)

    Talk to me when you ffmpeg by heart 😭

    [–] alecsargent@lemmy.zip 48 points 1 week ago (1 children)

    Alright alright, I'll get you the moon you wanted.

    [–] akunohana@piefed.blahaj.zone 7 points 1 week ago* (last edited 1 week ago) (2 children)

    This comment got my brain stuck in an infinite loop: there's a rabbit on the Japanese moon, there are tons of moon themed jazz songs, the moon is cheeze, moonshine, moon rhymes with boon, Moon River is a beautiful song, Kame-sennin blew up the moon to make Son Goku revert to his human form, Moonraker was only "meh..."...

    I still don't get it. WHAT does this expression mean 😭

    [–] cruseo@piefed.world 12 points 1 week ago* (last edited 1 week ago) (5 children)

    To β€œask for the moonβ€œ is to make an unreasonable request. The comment is a play on that saying. In this context, it means, β€œI’ll do the impossible”

    load more comments (5 replies)
    load more comments (1 replies)
    [–] dual_sport_dork@lemmy.world 21 points 1 week ago (1 children)

    Not to mention imagemagick. I can often get ffmpeg to more or less do what I want on the first try, but imagemagick always results in a second try after reading the documentation for the 938th time.

    For the magick stuff I do all the time (you all know what it is) I prepared a script. I wrote it probably a couple of years ago by this point and even if you held a gun to my head and I had it open in the text editor in front of me I couldn't explain to you what all the flags and arguments actually do.

    [–] akunohana@piefed.blahaj.zone 6 points 1 week ago (1 children)

    Ahahaha I feel you. My ffmpeg scripts are similar: they work, but GOD knows why. I should print the manual and read before bed.

    load more comments (1 replies)
    [–] Ephera@lemmy.ml 16 points 1 week ago* (last edited 1 week ago) (1 children)

    ffmpeg is always funny to me, because it feels like you could convert anything into anything, if you just knew the right flags, but 99% of my use is extracting a clip out of a video file.

    And the command for that is in my shell history, so I wouldn't know the flags either. Β―\_(βŠ™_Κ–βŠ™)_/Β―

    [–] akunohana@piefed.blahaj.zone 14 points 1 week ago

    HAH! I know!!! The "correct" flags are always: Ctrl + r 'ffmpeg' an undefined amount of times 8D

    [–] stoy@lemmy.zip 9 points 1 week ago (5 children)

    I just remember running the coolest ffmpeg command many years ago, I don't remember the actual command, but it rendered th video as ascii art

    [–] akunohana@piefed.blahaj.zone 6 points 1 week ago (1 children)

    Shut. Up. That sounds amazing. Did it convert the video data into ASCII text or did it use ASCII characters to resemble the actual video?

    load more comments (1 replies)
    load more comments (4 replies)
    [–] belluck@lemmy.blahaj.zone 8 points 1 week ago (2 children)

    i wish i could get ffmpegged

    [–] belluck@lemmy.blahaj.zone 7 points 1 week ago

    guy getting bred by two girls call that ffmpreg

    load more comments (1 replies)
    [–] ImgurRefugee114@reddthat.com 7 points 1 week ago* (last edited 1 week ago) (1 children)

    I got it, mostly... The various filter chains, not so much. But I can map input streams and set dispositions and metadata, and know a bunch of svtav1 passthru params by heart; with enough experience to set pretty decent crf/preset/filmgrain-synth settings by eyeballing the input (ofc specifics depends on the video encoder and whether or not I'm using something like the psyex/hdr fork...)

    Some people look at this as wizardry, but it's really not too hard once to get the hang of ordered arguments... Like whether or not you put -ss before or after -i changes the seeking behavior.... Okay, it's a little wizardry.

    load more comments (1 replies)
    [–] esc@piefed.social 6 points 1 week ago (1 children)

    Ffmpeg is tough but you should strive to openssl.

    load more comments (1 replies)
    load more comments (13 replies)
    [–] negativenull@piefed.world 52 points 1 week ago (1 children)
    load more comments (1 replies)
    [–] lena@gregtech.eu 50 points 1 week ago (1 children)
    [–] pelya@lemmy.world 40 points 1 week ago (5 children)

    tar is usually smart enough to figure that .tar.gz is a compressed archive, so tar xvf suffices.

    Moreover, .tar.xz archives are much more common nowadays, and the flag to tell tar to use xz decompression is J. Yes, uppercase J I shit you not, because all other letters of alphabet were already taken. The next commandline option added to tar is going to be a Unicode emoji symbol.

    [–] schnoopy@awful.systems 18 points 1 week ago (1 children)

    tar πŸ€πŸ—¨οΈπŸ‘‰ archive files

    [–] Zarobi@aussie.zone 14 points 1 week ago
    $ tar -πŸ₯Ί --πŸ‘‰πŸ‘ˆ uwu.tar.gz
    
    [–] bobzrkr@sh.itjust.works 11 points 1 week ago (1 children)

    The flag to extract .bz2 files is 'j'. Not confusing at all.

    load more comments (1 replies)
    load more comments (3 replies)
    [–] shrek_is_love@lemmy.ml 36 points 1 week ago (4 children)

    I was going to use this opportunity to shill for tldr by linking directly to their page on tar.

    But I just realized tar's reputation is so bad, they use it as the example on tldr's homepage. πŸ˜‚

    load more comments (4 replies)
    [–] flamingo_pinyata@sopuli.xyz 26 points 1 week ago* (last edited 1 week ago) (3 children)

    Again this old myth that using tar is possible without looking up commands every time. It's been debunked many times

    [–] turbowafflz@lemmy.world 24 points 1 week ago (2 children)
    [–] db2@lemmy.world 16 points 1 week ago (3 children)
    [–] turbowafflz@lemmy.world 22 points 1 week ago (4 children)

    but how am i supposed to remember that?

    eXtract Ze Vucking File?

    [–] alecsargent@lemmy.zip 9 points 1 week ago

    eXtract Ze Vucking File?

    Ja mein freund.

    [–] MaskedNybbles@piefed.social 5 points 1 week ago* (last edited 1 week ago)

    e[x]tract; g[z]ip; [v]erbose; [f]ile

    Reordered, and we can have [v]erbosely e[x]tract g[z]ip [f]ile, or tar vxzf [file]

    I find it more difficult to remember other options. Might stick better if pronouncing the g in gzip similarly as GNU insists GNU be pronounced, with a hard gβ€”never really tried it, but sounds a little funny. Actually, I think I first remembered it as g sounding like the, making for extract the zip file, but with a soft g; I felt the former put too much emphasis on a letter not used as an option.

    load more comments (2 replies)
    load more comments (2 replies)
    load more comments (1 replies)
    load more comments (2 replies)
    [–] Zachariah@lemmy.world 21 points 1 week ago (1 children)

    for me it’s remembering whether I wanted addgroup or groupadd

    load more comments (1 replies)
    [–] esc@piefed.social 19 points 1 week ago (7 children)

    It's pretty simple

    tar
     e[x]tract
     [z]is
     [f]ile
     [v]erbosely
    archive.tar.gz
    --directory=archivedir
    

    For creation it's pretty much the same but you need to specify [c]reate, e.g. tar czvf archive.tar.gz filestoarchive/ and for lis[t]ing it's - tar tf archive.tar.gz

    [–] boonhet@sopuli.xyz 12 points 1 week ago
    tar
      [t]he
      [f]uck
    am_i_looking_at.tar.gz
    
    load more comments (6 replies)
    [–] JakoJakoJako13@piefed.social 19 points 1 week ago (4 children)

    I saw tar -xvf 13 years ago and have been using it ever since.

    [–] Ephera@lemmy.ml 7 points 1 week ago

    I just use tar xf (extract file). Not sure, if that would've already worked 13 years ago...

    load more comments (3 replies)
    [–] entwine@programming.dev 15 points 1 week ago* (last edited 1 week ago) (2 children)

    Tar (some versions at least?) is actually smart enough to detect which format to use based on file extension of the output, so you don't need to remember which flag corresponds to which compressor. Examples:

    tar -caf archive.tar.xz [files]
    tar -caf archive.tar.bz2 [files]
    
    # extract
    tar -xf archive.tar.xz
    tar -xf archive.tar.bz2
    

    So you really only need to remember that c means create, x means extract

    load more comments (2 replies)
    [–] TheSyndZ@lemmy.dbzer0.com 13 points 1 week ago (2 children)

    Wait until you manage to rsync correctly...

    [–] faerbit@sh.itjust.works 6 points 1 week ago (1 children)

    Unless you're doing something really specific just use -a.

    [–] TheSyndZ@lemmy.dbzer0.com 9 points 1 week ago (2 children)

    Well i'll be damned learning just now thanks to you that it equals -rlptgoD (recursive, links, perms, times, group, owner, devices)

    I'm one of the lucky 10000...

    load more comments (2 replies)
    load more comments (1 replies)
    [–] CallMeAl@piefed.world 11 points 1 week ago

    I once had a job where I used tar multiple times a day for years. I don't think I could forget how to use it if I wanted to, which I don't because I still use it.

    [–] kata1yst@sh.itjust.works 10 points 1 week ago (1 children)
    [–] stoy@lemmy.zip 5 points 1 week ago (1 children)

    I mean...

    tar -cf hello.tar

    [–] feannag@sh.itjust.works 6 points 1 week ago

    or tar --help

    [–] renormalizer@feddit.org 10 points 1 week ago
    [–] groucho@retrolemmy.com 9 points 1 week ago

    Honestly I just create and extract. I don't use most of the options. But, I had a lead about ten years ago dare me to create and compress a .tar.gz directly without looking it up and I was most of the way through typing it by the time he finished talking. He looked at me like I was doing black magic.

    [–] Imhotep@lemmy.world 9 points 1 week ago* (last edited 1 week ago)

    If like me you have no memory, use aliases often.

    Put them in a dedicated file, I find it easier to manage. You'll need to modify bashrc or zshrc to link to the new file. Big plus, they now work with both. I don't know if it can be done with fish.

    Now my favorite tip for us brainless: start aliases with an easy to reach character you most likely wouldn't use in a terminal. I use "Γ©", on a french keyboard.

    Γ©+tab: all my aliases
    Γ©+t+tab: I see "Γ©tarextract" (there it is), "Γ©text-edit", "Γ©todo"

    I don't even need to remember aliases. I don't need to remember anything!
    Imathop out.

    tar -xvf all the things!

    [–] socsa@piefed.social 6 points 1 week ago

    It's easy, you just have to remember the development was from Transylvania.

    EXtract Ze Vamn Files

    [–] phoenixz@lemmy.ca 6 points 1 week ago (2 children)

    Why is everyone always going in about tar? I never saw the issue with it, its not more or less complicated than other commands that take command line flags...

    For example: sudo netstat -peanut, where -peanut actually expands to -p -e -a -n -u -t. I don't have any idea anymore what each letter stands for while I do recall that tar -cjf file.tar * is -c create, -j bzip2 compression and -f filename

    load more comments (2 replies)
    [–] Treczoks@lemmy.world 6 points 1 week ago (1 children)

    Try ffmpeg command line options, and tar starts to look like a starter job.

    load more comments (1 replies)
    [–] kiri@ani.social 5 points 1 week ago* (last edited 1 week ago)

    I still remember moment when I accidentally swapped tar's arguments and it just overwrited my 20 Gib directory with empty tarball. (I had backups luckily.)

    load more comments
    view more: next β€Ί