LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-02-2003, 02:57 PM   #1
true_atlantis
Member
 
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639

Rep: Reputation: 30
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?
 
Old 12-02-2003, 03:08 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
You're doing it the wrong way round mate

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



Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu Fluxbox simple question, simple answer? generallimptoes Linux - Software 3 09-26-2005 03:03 PM
Installing Programs - A simple question from my simple mind jmp875 Linux - Newbie 6 02-18-2004 10:03 PM
Simple link list problem karlan Programming 4 01-22-2004 02:05 PM
Simple program link as Dockapp in Fluxbox Nerd2 Linux - Software 1 05-31-2003 09:29 PM
simple question seeking simple answer enzo250gto Linux - Newbie 1 10-27-2001 05:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration