Futuregeek
Futuregeek

Reputation: 1980

create symbolic link to already created folder

I have already created the folder /var/dir as root. I want to symlink another directory /home/kute/test to /var/dir - and this have to run as 'kute' user.

But I am getting

/home/kute/test --> /var/dir/test

instead of getting

/home/kute/test --> /var/dir

Upvotes: 2

Views: 5676

Answers (1)

choroba
choroba

Reputation: 241908

What command did you use?

ln -s /home/kute/test /var/dir

If you want /var/dir to be the link, you have to remove/rename the existing directory first. It's not possible to have a directory and a link of the same name.

Upvotes: 4

Related Questions