To access to macOS in single user mode, press cmd
+ s
just after rebooting your computer. Wait for a few seconds, and your computer will display a command terminal.
If your macOS is new, run:
terminalmount -uw /System/Volumes/Data
If you get an error running the previous command, then:
terminal/sbin/mount -uw /
This is a critical step, since it will allow you to access with read/write permission. ✏️
terminalcd Users/Erik/Desktop
Change Erik
for the name of your user. If you don't know it:
terminalcd Users && ls
This command will display the users on your machine. After you know the name of the main user, run cd Users/YOUR_USERNAME/Desktop
again.
Display the files from your Desktop by running ls
command.
To remove a file:
terminalrm file.jpg
To remove a folder:
terminalrm -r folder
To remove the trash:
terminalrm -rf ~/.Trash
Hi, I'm Erik, an engineer from Barcelona. If you like the post or have any comments, say hi.