Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete file from desktop in single User mode osx

Tags:

file

bash

macos

My start up disk is full and the mac is not booting i want to to remove file from desktop in single user mode

I tried this

rm -rf /users/username/desktop/filename

but not working it says files read only

like image 852
Amr Mohamed Avatar asked Sep 19 '14 08:09

Amr Mohamed


People also ask

How do you delete a file from desktop on Mac?

On your Mac, drag the item to the Trash in the Dock or select the item, then press Command-Delete.

How do I remove items from my desktop without deleting it Mac 2019?

To do so, press and hold "CTRL" and click the external hard drive icon. Select "Eject" to remove it from the desktop. Alternatively, drag the hard drive icon from the desktop to the trash bin to remove it from the desktop.

Why can't I delete files from my desktop Mac?

If you cannot delete an item in Mac OS X, try the following: Check to see if the file (or a file within the folder) is being used by an application. Quit all open applications, and then try to empty the Trash. If the item is a file, click the file once.


1 Answers

As described in this article mac-wont-boot-full-disk you need to mount you disk in RW mode :

sudo /sbin/mount -uw /

then you'll be able to remove what you want

like image 101
Thomas Ayoub Avatar answered Sep 22 '22 14:09

Thomas Ayoub