libtrash is a shared library which, when preloaded, implements a trash can under GNU/Linux. For instance, with libtrash, Midnight Commander will move files to the trash directory: LD_PRELOAD=/usr/lib/libtrash.so.3.9 mc