Re: Very weird problem with handling symbolic links

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



Le 17/09/2018 à 11:05, Nicolas Kovacs a écrit :
>   $ mkdir test_link
>   $ cd test_link/
>   $ ln -s /tmp/ link_to_tmp
>   $ ls -l
>   total 0
>   lrwxrwxrwx. 1 kikinovak kikinovak 5 Sep 17 10:56 link_to_tmp -> /tmp/
>   $ rm link_to_tmp/
>   rm: cannot remove ‘link_to_tmp/’: Is a directory
>   $ rmdir link_to_tmp/
>   rmdir: failed to remove ‘link_to_tmp/’: Not a directory

I'll answer that myself, since I just found the culprit. The trailing
slash in `link_to_tmp/` caused the problem.

  $ rm link_to_tmp <-- works perfectly

This must be one of those rare occasions where tab completion does *not*
come in handy.

Cheers,

Niki

-- 
Microlinux - Solutions informatiques durables
7, place de l'église - 30730 Montpezat
Site : https://www.microlinux.fr
Blog : https://blog.microlinux.fr
Mail : info@xxxxxxxxxxxxx
Tél. : 04 66 63 10 32
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux