Softlinks - cannot delete
This is the result from a posting I had on the Newbie forum, but I still don't have an answer. Maybe somone specialized in Red Hat would know what the problem could be?
I made a softlink "ln -s" from the directory /var/www/html/public_html --> /home/ddd/public_html but now I want to delete public_html so I tried; Code:
Code:
DaJoMu --------------------------------------------------------------- How exactly did you issue the ln ? And what does ls -ld /var/www/html have to say about it? Cheers, Tink ------------------------------------ I issued the softlink in this manner Code:
Code:
------------------------------------- How bizarre :) That's an actual directory. And ln -s should have failed. rm -rf /var/www/html/public_html should work. Cheers, Tink ------------------------------------------------------ Not working ( post #5) Code:
other suggestions that would be nice? Let me say this is a Clarkconnect 3.1 server running Red Hat Enterprise Linux / CentOS 4 core Code:
|
Is there any difference between these two:
Code:
ls -l /var/www/html/public_html If it really is a symlink then the first should tell you about the symlink and the second should tell you about the directory it points to. Also check Code:
alias ls |
softlinks - cannot delete
Output from the suggested commands
Code:
ls -l /var/www/html/public_html Code:
ls -l /var/www/html/public_html Code:
alias ls Code:
alias -p ls DaJoMu |
I don't know what to tell you, except just to do this again:
Code:
rm /var/www/html/public_html |
Genius!!
Thank you so very much Spoon. The solution was the trailing /
Since I used tab to finish the line the / always was present. I learned something new today. Thanks |
All times are GMT -5. The time now is 11:16 PM. |