Creating hardlinks for directories.

Les Mikesell lesmikesell at gmail.com
Sun Jan 15 15:15:19 UTC 2006


On Sun, 2006-01-15 at 05:45, Vikram Goyal wrote:
> > >
> > > I wanted to create hardlinks for directories on the same file system.
> > > I know it's not allowed. But the man page for ln says one may. Now I
> > > want to know how may one switch it on.
> > >
> > > Also what could be the pitfalls.
> > >
> > mount --bind /source /target
> > 
> > works well for me)
> > 
> 
> Thanks! but it mounts a section of the dir hierarchy on another dir and
> will get dismounted on shutdown. Also only root may do it.
> 
> I wanted to make permanent links which may or may not be subjected to
> frequent deletions etc. and which I as a normal user could execute i.e.
> from some scripts.

Why not use symlinks instead?  They work fine for directories
as long as you remember which is the real one and which is
the link (or check with 'ls -l' so you know what to expect
from deletion.

-- 
  Les Mikesell
    lesmikesell at gmail.com





More information about the fedora-list mailing list