Re: removing symbolic link

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

 



>    I am having serius troubles trying to remove a symbolic link. I create
>one just for testing purpose, like this:
>
>#ln -s /home/nata/teste/ /root/teste/
>
>    The I tryed to remove this using rm:
>
>#rm /root/teste/
>
>    It asked if I want to remove the files and the directory (all my files
>from /home/nata/teste/). But I don't want it. I just want to remove de
>symbolic link. How can I do this?!

Try it without putting the slash at the end (/root/teste), because you are
telling it to traverse the link by doing that.

When working with directory names, it is best to leave off trailing slashes.

MB
-- 
e-mail: vidiot@xxxxxxxxxx                                /~\ The ASCII
                                                         \ / Ribbon Campaign
[So it's true, scythe matters.  Willow  5/12/03]          X  Against
Visit - URL: http://vidiot.com/                          / \ HTML Email


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux