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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 11:22:49  来源:igfitidea点击:

Delete file from desktop in single User mode osx

macosbashfile

提问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

然后你就可以删除你想要的东西