Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • It works now. Thank you! However, the order I need to use is definitely ln -s dest source. I had a look at man ln, and I think the only way to get the other order is if you write ln -s -t source dest. Also, the paths I use will not have very many directories, and there will only be directories and no files. However, that part of your solution is still much better practice. I will edit my question to reflect this. Thank you for your help! Commented Feb 28, 2016 at 12:58
  • @MartinBoström No, I assure you, it's ln -s source destination, where source is the (usually existing) target of the link and destination is the path to the link to create. Commented Feb 28, 2016 at 20:15
  • @Gilles I see my mistake now, and the source of the confusion. I meant the same thing, but mixed up source and destination because I was thinking of the directory the link points to as the destination. However, the order I put the terms in in the question is right (but with poorly chosen words) because what I want to do is this: if a directory exists in /some/path, make a link in that directory to a directory with the same name in /some/other/path. This is obviously neither clear, nor a normal thing to want to do. I will edit my question to clarify this. Apologies for the confusion! Commented Feb 28, 2016 at 20:27