Half the replies to this are “haha me too” and the other half are “the answer is _, obviously”
I’m chuffed that half my followers are computer geniuses and the other half are as bad at computers as I am. Perfect equilibrium.
do i look like i know what an inode is? i'm a mac user ffs
j/k I have a degree in this nonsense please
Oh what’s that? `ln` has an optional destination parameter? Isn’t that a eh
please, everyone stop replying to this meme, please I– I have a family
@ashfurrow so relatable
@ashfurrow % cd /dest
% ln -s /src
Never wonder again!
@ashfurrow me every time
Like... I'd expect to be talking about the actual link. The link points from A to B, so A is the source, B is the destination.
Note: I've actually managed to brute-force myself to remember this one, I'm just telling you that the simple "src dest" mnemonic is bad
@ashfurrow Think of it as if you were using cp instead. :)
@ashfurrow just remember that it's the same order as cp
@ashfurrow dest always goes at the end. Obviously.
@ashfurrow EVERY DAMN TIME
@shine this personally helped me@remember tar
@ashfurrow I just say it out loud and use the long options. you can't go wrong when you're `--extract --gzip --verbose --file tar-archive.tar.gz` or `--create --gzip --file tar-archive.tar.gz [from] directory`.
the other confusions new ( or even occasional ) users might have is where to put the archive name and the directory / file to be archived.
@ashfurrow I look it up every time. same with strstr() in PHP :P
@ashfurrow I had to have picked that up from either Stephen Kochan's UNIX shell book, or UNIX for the Impatient, 30-34 years ago. Possibly Wile E. Coyote "genius", more likely good at retaining syntax and language tricks.
@ashfurrow This is one of those things where you can interpret destination differently. Is it where the link gors or where it points?
Doesn't help things.
Anal pretty sure the Windows one is backwards compared to the Linux one.
@ashfurrow Isn't that the basic unit of the EXT filesystems?
@gudenau it is indeed
@ashfurrow Is that a picture of a god dang hot dog?
all i know about inode is that it has zero dtime.
@ashfurrow The fun thing about this is I know which way to use `ln -s` in practice, but I get confused by “src” and “dest” because they mean the opposite thing at creation time and at usage time
@ashfurrow oh no
@ashfurrow thank goodness I'm not the only one who keep having to refer to the command help to remember. >.<
@ashfurrow *uses dolphin to create a link because i'm scared of getting it backwards and destroying something*
@ashfurrow cd /dest/; ln -s /src
@ashfurrow No you messed up the links and made weird clones of yourself.
@ashfurrow you made the mistake of posting the meme. you have to suffer now 😅
@ashfurrow R.I.P. Timeline
@ashfurrow (My memory tool for this: the args are in the same order as for cp.)
@ashfurrow Wow. We suddenly feel way less alone...
@ashfurrow someone should came up with a version for ffmpeg arguments...
@ashfurrow the real evil is rsync and scp where a trailing / is semantically important
@ashfurrow same meme but the buttons are "/dest is the destination the link points to" and "/dest is the destination the link gets put into"
@ashfurrow instead of "cd destdir && ln -s src", you can also do "ln -s -T src dest"
('src' being whatever the symlink will point to, and 'dest' the new symlink)
@ashfurrow Fun story: When I was learning AT&T UNIX in 1996, the older "UNIX guru" wrote out a symbolic link instruction and told me "This sets up the link.. etc.."
I told him he got it backwards. He denied this and ranted about it for quite some time, but it turned out I was right and he was wrong.
Unfortunately, he had the ear of the manager and managed to "get me fired" over it.
@pertho wow, that sucks!
@ashfurrow *my brain explodes* - Worst UX EVAR! I have to go to manpage or --help Every Single Time! :)
@ashfurrow 😂 😂 😂
@ashfurrow the real question is "which file is the src"
Every ... damn ... time
@ashfurrow echo -e "/src\n/dst" | sort -R | xargs ln -s
especially dangerous if you
This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!