// you’re reading...

Tips N Tricks

Recycle bin (trash can) for Linux console

The Linux desktop (GNOME/KDE) has a Trash Can. But what about the command line or the console ? Especially, while working with Linux servers we often work on the command line (typically connect to the server via SSH) and one may end up deleting files by accident.

That’s where libtrash comes to help. Download it from http://pages.stern.nyu.edu/~marriaga/software/libtrash/. I used to use it long time back when, once, I deleted some important files from my laptop and none of those wonderful undelete utilities worked. Today I again deleted a file by accident. Though this time I had a backup, I got reminded of this wonderful utility. It still seems to be updated and maintained, somewhat – it was last updated in Jan 08.

Installed it on my laptop running Fedora 9 following the instructions in the readme file (found after extracting the tar.gz archive). And it worked (again)!

GD Star Rating
loading...
GD Star Rating
loading...
  • Share/Bookmark

Discussion

One comment for “Recycle bin (trash can) for Linux console”

  1. Another option for a console recycle bin is this one:

    ReMove to Waste, rmw, is a bash script. It functions as a recycle bin when reMoving files with rm. ReMove to Waste will move files to a Waste folder or “Trash can,” and it will prepend the time and date to files when reMoving them.

    I guess courtesy demands I disclose that I’m the author.

    GD Star Rating
    loading...

    Posted by Andy Alt | May 24, 2009, 12:32 pm

Post a comment