FROM : Markus Hitter
DATE : Tue Apr 26 22:47:27 2005
Am 26.04.2005 um 19:55 schrieb Roy Lovejoy:
> Anyhow, I knew that fun stuff like /etc and /dev are hardlinked,
Nobile:~$ ls -ld /etc /dev
dr-xr-xr-x 2 root wheel 512 21 Apr 10:55 /dev
(No link at all)
lrwxr-xr-x 1 root admin 11 5 Nov 2003 /etc -> private/etc
(This is a soft link)
> But for backup, security, etc reasons, I REALLY need to hard link this
> folder to root.
Probably you want a soft link. What's wrong with a "sudo ln -s
/path/to/your/favourite/hacking/dir /Company" ?
> It would have been nice if XCode would follow aliases/symbolic links,
> but they don't.
Aliases is something not very Unixy, so few, if any, of the development
tools support them.
As even /usr/include is full of soft links, soft links most probably
work. Even across Volumes.
A hard link is a second name for a file, possibly in another directory,
but always on the same volume[1]. It's indistinguishable which of both
was the original. Try something like:
touch file1
ln file1 file2
ls -l file?
> Can anyone offer any help??
Hope that did help.
Markus
[1] The back of my brain says there is a little imperfection with the
implementation of hard links on HFS+ ...
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
DATE : Tue Apr 26 22:47:27 2005
Am 26.04.2005 um 19:55 schrieb Roy Lovejoy:
> Anyhow, I knew that fun stuff like /etc and /dev are hardlinked,
Nobile:~$ ls -ld /etc /dev
dr-xr-xr-x 2 root wheel 512 21 Apr 10:55 /dev
(No link at all)
lrwxr-xr-x 1 root admin 11 5 Nov 2003 /etc -> private/etc
(This is a soft link)
> But for backup, security, etc reasons, I REALLY need to hard link this
> folder to root.
Probably you want a soft link. What's wrong with a "sudo ln -s
/path/to/your/favourite/hacking/dir /Company" ?
> It would have been nice if XCode would follow aliases/symbolic links,
> but they don't.
Aliases is something not very Unixy, so few, if any, of the development
tools support them.
As even /usr/include is full of soft links, soft links most probably
work. Even across Volumes.
A hard link is a second name for a file, possibly in another directory,
but always on the same volume[1]. It's indistinguishable which of both
was the original. Try something like:
touch file1
ln file1 file2
ls -l file?
> Can anyone offer any help??
Hope that did help.
Markus
[1] The back of my brain says there is a little imperfection with the
implementation of hard links on HFS+ ...
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
| Related mails | Author | Date |
|---|---|---|
| Roy Lovejoy | Apr 26, 19:55 | |
| Finlay Dobbie | Apr 26, 22:39 | |
| Markus Hitter | Apr 26, 22:47 |






Cocoa mail archive

