this post was submitted on 14 May 2025
659 points (97.8% liked)

Programmer Humor

24648 readers
1105 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 54 points 1 month ago (9 children)

ffmpeg command lines are straight up black magic.

Anyone who understands them is not to be trusted.

It's even worse than tar.

[–] [email protected] 14 points 1 month ago (2 children)

GNU tar is easy and straight-forward.

It's also completely incompatible with any other Unix, but then, what difference does it make is nobody can use them?

[–] [email protected] 9 points 1 month ago* (last edited 1 month ago) (1 children)

A more complex but more commonly used program is rsync

rsync -rav /home/user/Documents /mnt/usbdrive is treated differently than rsync -rav /home/user/Documents/ /mnt/usbdrive which is different than rsync -rav /home/user/Documents /mnt/usbdrive/ which is different than rsync -rav /home/user/Documents/ /mnt/usbdrive/

It's a great tool for making copies onto drives, even servers. But man you have to double check how each folder path is laid out, otherwise it'll write the files of one folder to the main drive, unorganized.

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

I recommend --dry-run and reading the stdout with human readable output -h. And dont use the --delete flag if you dont know what will happen 😓

load more comments (6 replies)