29
submitted 5 months ago by [email protected] to c/[email protected]

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 5 months ago

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

[-] [email protected] 4 points 5 months ago
[-] [email protected] 5 points 5 months ago

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

[-] [email protected] 2 points 5 months ago

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

[-] [email protected] 3 points 5 months ago

Ahhh sorry I read it as a question

[-] [email protected] 2 points 5 months 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

this post was submitted on 30 Jan 2025
29 points (96.8% liked)

Linux Questions

2180 readers
1 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