ab
V2EX  ›  问与答

rm path * -rf 这是什么后果?

  •  
  •   ab · Oct 15, 2019 · 1798 views
    This topic created in 2442 days ago, the information mentioned may be changed or developed.
    手残多加了一个空格

    rm path* -rf 写了 rm path * -rf

    几秒后反应过来,有救吗?
    4 replies    2019-10-15 15:16:34 +08:00
    talentl
        1
    talentl  
       Oct 15, 2019
    全删了,没救了
    ys0290
        2
    ys0290  
       Oct 15, 2019 via iPhone
    那要看在哪里执行,以及谁执行
    ReZer0
        3
    ReZer0  
       Oct 15, 2019
    但愿你不是在 root 下输入的……
    ab
        4
    ab  
    OP
       Oct 15, 2019
    @ReZer0 还好不是,在某一个文件夹内,想删除一个子文件夹
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3612 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 56ms · UTC 04:57 · PVG 12:57 · LAX 21:57 · JFK 00:57
    ♥ Do have faith in what you're doing.