bash 在单用户模式 osx 下从桌面删除文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25929701/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Delete file from desktop in single User mode osx
提问by Amr Mohamed
My start up disk is full and the mac is not booting i want to to remove file from desktop in single user mode
我的启动盘已满,Mac 无法启动 我想在单用户模式下从桌面删除文件
I tried this
我试过这个
rm -rf /users/username/desktop/filename
but not working it says files read only
但不工作它说文件只读
回答by Thomas Ayoub
As described in this article mac-wont-boot-full-diskyou need to mount you disk in RW mode :
如本文mac-wont-boot-full-disk 中所述,您需要以 RW 模式挂载磁盘:
sudo /sbin/mount -uw /
then you'll be able to remove what you want
然后你就可以删除你想要的东西