You can't create "hard links" to directories. Trust me, you don't want to, you delete the hard link, the directory disappears as well, a likely unwanted side effect of hard links (they share the same inode number, essentially making the link and the destination the same entity). The fix, as it were, is to add the "-s" (soft link) option. Almost all links you make will be soft links, although hard links can be useful in certain situations. So, for your example, you'd need to type:
cp -srp /home/IR2ZLM/* .
Hope this helps.
Last edited by scott_R; 09-20-2008 at 11:39 PM.
|