Will
Will

Reputation: 4386

Create symbolic directory

How do you make a symbolic link from a directory to a directory?

I've scoured google for a straight forward answer but all examples are either for file links or kind of hand wave around how you make a directory symbolically link to another one.

Want one of those great straight up stackoverflow answers to this that will hopefully drowned out all the rest of the cruft out there.

Upvotes: -1

Views: 264

Answers (1)

Kevin
Kevin

Reputation: 56089

You do it just the same as linking to a file, ln -s.

$ mkdir testdir
$ touch testdir/file
$ ln -s testdir otherdir
$ ls otherdir
file
$ 

Upvotes: 3

Related Questions