this post was submitted on 30 Jan 2025
28 points (100.0% liked)

Linux Questions

1281 readers
9 users here now

Linux questions Rules (in addition of the Lemmy.zip rules)

Tips for giving and receiving help

Any rule violations will result in disciplinary actions

founded 2 years ago
MODERATORS
 

Is there anything that could help me memorise the argument order of the ln command?

I'll take anything from little helper phrases over shell extensions to replacements written in Rust. I only use the command occasionally, but I need a fool-proof solution. Do you have any tricks to get it right?

@linuxquestions

#AskFedi #Linux

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 11 points 1 day ago (2 children)

It’s the same as cp or mv. Source dest.

[–] [email protected] 4 points 1 day ago (1 children)
[–] [email protected] 5 points 1 day ago (1 children)

Think of it like making a fake copy? Source file is first, symlink is second.

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

That's what I mean: what you're going to operate on; where you're going to put it.

[–] [email protected] 3 points 1 day ago

Ahhh sorry I read it as a question

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

This is how I remember as well. I write the command in my head if I would copy the file, than replace cp with ln