我用以下命令建立了符号链接:
ln -s ../test5
我现在要删除它,但我的rm失败:
$ rm -Rf test5/
rm: cannot remove `test5/': Not a directory
$ rm test5/
rm: cannot remove directory `test5/': Is a directory
$ rmdir test5/
rmdir: test5/: Not a directory
$rm -r test5/
rm: cannot remove `test5/': Not a directory
$ls -l
0 lrwxrwxrwx 1 peter peter 8 Jul 20 15:30 test5 -> ../test5/
如何删除我的符号链接?(Ubuntu 8.10,bash)
删除结尾的斜杠:
有提示:
$ rm test5
没有提示:
$ rm -f test5
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句