Unix force dedlete

nordex

Registered
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? :)
 
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
 
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. ;-)
 
Back
Top