Remove a symlink to a directory

前端 未结 11 1021
情深已故
情深已故 2020-12-02 03:16

I have a symlink to an important directory. I want to get rid of that symlink, while keeping the directory behind it.

I tried rm and get back rm

11条回答
  •  悲&欢浪女
    2020-12-02 04:08

    Use rm symlinkname but do not include a forward slash at the end (do not use: rm symlinkname/). You will then be asked if you want to remove the symlink, y to answer yes.

提交回复
热议问题