Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    欲哭无泪,酿成大错, 删除目录的软链接,把原目录全删了

    Linux
    2
    2
    832
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • tigger
      tigger LV 7 last edited by

      比如 tina 软链接到 -> tina5/ 目录

      如果 rm tina/ 就会把 tina5/ 全删了,

      如果只想删除软链接, 应该用: rm tina

      参考: https://stackoverflow.com/questions/210120/remove-a-symlink-to-a-directory

      1 Reply Last reply Reply Quote Share 0
      • xiaowenge
        DOT小文哥 LV 8 last edited by

        软链接原来也不软

        1 Reply Last reply Reply Quote Share 0
        • 1 / 1
        • First post
          Last post

        Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

        行为准则 | 用户协议 | 隐私权政策