0
1
I have Windows 7 64-bit PC. I have installed Cygwin version 2.6.0 on it in c:\cygwin64 directory.
I have a file named file1. For it I created a soft link file named file1_soft1.
ls -i -l
command gives me this output:
total 2
3377699721198685 -rw-r--r-- 1 cChappati Domain Users 57 Jan 20 19:47 file1
37154696926542763 lrwxrwxrwx 1 cChappati Domain Users 5 Jan 21 10:36 file1_soft1 -> file1
Then I deleted the original file using rm file1
command successfully.
Now when I run ls -i -l
command, I get this output:
total 1
37154696926542763 lrwxrwxrwx 1 cChappati Domain Users 5 Jan 21 10:36 file1_soft1 -> file1
Why file1_soft1 file is still linked to file1 file when file1 file does not exist anymore?
I was expecting that either file1_soft1 file will also be deleted or become a regular file with soft link to file1 file removed. But none of this happened.
Thanks
1That's part of why it's called a 'soft' link. – user1686 – 2017-01-21T23:09:59.447
1This is normal behavior for Windows symlinks. If Rome disappeared, do all the road signs automatically change too? No. – jiggunjer – 2017-01-22T12:44:16.377