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 03-12-2005, 09:01 PM   #1
cranium2004
Member
 
Registered: Feb 2004
Distribution: FC4,RHEL4
Posts: 223

Rep: Reputation: 30
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.
 
Old 03-12-2005, 10:42 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
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>
 
Old 06-20-2005, 06:44 AM   #3
basher400
Member
 
Registered: Mar 2005
Posts: 53

Rep: Reputation: 15
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?
 
  


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
creating link to run firestarter skitzo2005 MEPIS 4 10-14-2005 12:45 PM
Soft Link and Hard Link Moataz Red Hat 1 04-25-2005 07:30 AM
Creating a link to a network resource. LinuxArtard Linux - Newbie 1 12-22-2004 09:43 AM
trouble creating a link to an application evilmrhenry Linux - Software 3 02-15-2004 02:19 AM
Creating a CD rom link in RH9 BadKarma Linux - General 2 12-08-2003 05:30 AM


All times are GMT -5. The time now is 01:30 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration