6
1
Is there a UNIX
command to dereference a symbolic link? I would like to replace the link by a copy of the file it points to.
Example:
$ ls
a
b -> a
$ deref b
$ ls
a
b
Now, a and b have the same content but are independent of each other. My question is if there is such a deref
command. Important: I don't have to know where b
points to; the command should figure that out.
That's not ideal because I have to know where
b
points to. I'd like to avoid having to find that out myself. – dehmann – 2011-07-14T19:10:50.017