Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] replacing symbolic links




$ cat >a
abc
$ ln -s a b
$ ls -l a b
-rw-rw-r--    1 vik      vik             4 Mar  8 06:49 a
lrwxrwxrwx    1 vik      vik             4 Mar  8 06:49 b -> a
$ cp --remove-destination `readlink b` b
$ ls -l a b
-rw-rw-r--    1 vik      vik             4 Mar  8 06:49 a
-rw-rw-r--    1 vik      vik             4 Mar  8 06:50 b

hth
Viktor

>>>>> "HA" == Hector Akamine <hector_aka@example.com> writes:

    HA> Hi,
    HA> Is there any command to replace the symbolic link to a
    HA> file with the real file (i.e., delete the symbolic
    HA> link to the file and then copy the file to the
    HA> directory)?

    HA> Thanks in advance


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links