LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   simple link question (ln) (https://www.linuxquestions.org/questions/linux-newbie-8/simple-link-question-ln-122013/)

true_atlantis 12-02-2003 01:57 PM

simple link question (ln)
 
i am trying to create a link from a mounted hard drive at /mnt/hd to a folder in my home directory /home/atlantis/hd and this is what i try, and these are the errors i get...

[root@localhost atlantis]# ln -s /home/atlantis/hd /mnt/hd
ln: creating symbolic link `/mnt/hd/hd' to `/home/atlantis/hd': Operation not permitted
[root@localhost atlantis]# ln -s /home/atlantis/hd /mnt
ln: `/mnt/hd': cannot overwrite directory
[root@localhost atlantis]#


i dont understand why /mnt/hd says that its creating a link /mnt/hd/hd ??
and what is the difference between a hard link and a symbolic link?
if i wanted to be able to add/remove files from my /mnt/hd through the link, can i do that with a symbolic link?

Tinkster 12-02-2003 02:08 PM

You're doing it the wrong way round mate

man ln
ln [OPTION]... TARGET [LINK_NAME]



Cheers,
Tink


All times are GMT -5. The time now is 07:12 PM.