After seeing the link at http://www.interworks.com/blogs/ckaukis/2010/02/11/simple-command-line-trash, I decided to do this… a couple other notes…
Enter “sudo nano /bin/trash” without quotes, enter your password
Enter the following two lines:
#!/bin/sh
mv "$*" ~/.Trash/
Control-X to save
Enter “sudo chmod +x /bin/trash”
again, your password
Done…you’ve now can send to trash instead of the more dangerous “rm -rf …”
Recent Comments