LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   creating hard link problem (https://www.linuxquestions.org/questions/linux-newbie-8/creating-hard-link-problem-300933/)

cranium2004 03-12-2005 08:01 PM

creating hard link problem
 
Hello,
I want to create hard link between 2 dirs. because of linux reinstallation i copy whole directory to windows partition of linux kernel source but as windows not store links now i am not able to have
/usr/src/linux-2.4.24/include/asm directory which is when entered into it goes to dir
/usr/src/linux-2.4.24/include/asm-i386
that mean i want to create link asm dir that points to asm-i386 in include dir.

foo_bar_foo 03-12-2005 09:42 PM

since hard link is a copy of an inode and inodes are tied into directories you can't hardlink directories
use soft link (that's the way it was originally a soft link)
ls -s <target> <linkmame>

basher400 06-20-2005 05:44 AM

Quote:

Originally posted by foo_bar_foo
since hard link is a copy of an inode and inodes are tied into directories you can't hardlink directories
use soft link (that's the way it was originally a soft link)
ls -s <target> <linkmame>

you ment:

ln -s <target> <linkmame>

right?


All times are GMT -5. The time now is 02:13 AM.