刚刚我 rm -rf /* 了

嘿嘿嘿嘿iehiehei


刚买的云服务器
刚安装部署成功 nvm git vue node mongodb
结果删库跑路了


事故现场

git pull 出了点冲突

所以我想删除 /home/wwwroot/book/ 下的所有文件

再 pull 一下

没想到手快 rm -rf /* (hahhaha,都怪经常看到这样的文章)

然后就出现了


cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx

我去,这路径明显不对啊
快速 ctrl + c 结束
然后
在这里插入图片描述

好熟悉呀

今年 5 月份刚看过一篇 rm -rf /* 的公众号推文

只记得一定不要 exit 断开 ssh 连接

否则可能就连不上了

当转念一想,反正也是刚买的服务器,怕什么

exit Enter

open putty(ssh tool)

heihiehehiehieheiheieh

在这里插入图片描述


因为没有重要数据
所以停止实例(一直显示 ‘停止中’ 大概有10 分钟才停止),重装操作系统就好了,(小时候经常把家里的 win 搞坏,我爸不得不带着机箱找人重装)


放一下几个月前看得推文吧,open。

又看了一遍。

希望下次不要用上。

heiheiehieheiheiehiehiehei

还好我的个人网站每日 4:00 都自动创建快照

我记得有人说过这种命令阿里云有限制,怎么没有?

还可以把 rm -rf /* 替换成移动文件操作,代替删除命令;


喜欢或对你有帮助,请点个赞吧 。
有错误或者疑问还请评论指出。
我的个人网站 --> 点击访问

END
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值