Re: How to know whether certain files was soft linked?



wqhflp@xxxxxxxxx wrote:
Sometime we create soft link (say link_a) for a file (say a), and if we
delete file a, then the link_a will be invalid. Is there any way to
find out which file is linked to file a? (In this case, the expected
answer is link_a). You know maybe some others create a linked file
referring to a and did not tell us the fact. So we must find the truth
from the OS or shell.


There is no way other than to search every file in the system to see
if any of them are a soft link to a.


Chris Mattern
.



Relevant Pages

  • How to know whether certain files was soft linked?
    ... Sometime we create soft link for a file, ... then the link_a will be invalid. ... You know maybe some others create a linked file ... from the OS or shell. ...
    (comp.unix.shell)
  • Re: Console redirected to COM1
    ... >>to use it for the shell. ... debug printing and load the serial driver for it. ... This is what I get on boot on COM1. ... how I got an invalid handle. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: shell variables
    ... the shell doesn't export ... Testing: HISTSIZE ... WARN: pxfgetenv, Invalid argument ...
    (comp.lang.fortran)
  • Re: root shell
    ... >was invalid. ... >some workaround for things like this? ... If a non-root user could change root's shell to an arbitrary value ...
    (comp.unix.solaris)
  • Re: handling perl string containing @ and $ with system function
    ... The simplest way would be to bypass the shell: ... perldoc -f system ... (remove .invalid and reverse each component for email address) ...
    (comp.lang.perl.misc)