O’Reilly Network: Bringing Trash-Awareness to rm. Apple did a pretty good job of making Mac OS X feel like a Mac operating system despite its BSD core, but you can really feel like you’re in another world when you dive into the Terminal. The script described in the article acts as an alias for rm and moves files to the Trash instead of immediately deleting them as rm does. Pretty cool.