N nordex Registered Dec 22, 2003 #1 I have forgotten the script you would use for a file that wont delete. So when you open up the terminal does anyone know the script to force delete?
I have forgotten the script you would use for a file that wont delete. So when you open up the terminal does anyone know the script to force delete?
bobw The Late: SuperMacMod Dec 22, 2003 #2 cd ~/.Trash <hit return> sudo rm -rf put a space after the f and drag the item you want deleted to the terminal so that its path is automatically entered, then press return give it your admin password and hit return
cd ~/.Trash <hit return> sudo rm -rf put a space after the f and drag the item you want deleted to the terminal so that its path is automatically entered, then press return give it your admin password and hit return
fryke Moderator Staff member Mod Dec 22, 2003 #4 Or just do a 'sudo rm -rf *' after cd-ing to the Trash. Removes anything inside the current directory without asking again. Kind of like a contract killer. And similarly dangerous. ;-)
Or just do a 'sudo rm -rf *' after cd-ing to the Trash. Removes anything inside the current directory without asking again. Kind of like a contract killer. And similarly dangerous. ;-)