// 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

Email This Post Email This Post Print This Post Print This Post Post A Comment Post A Comment Tweet your comments/question to me @shekharg

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

shekharg: RT @aseemsood: Good news today - Delhi Metro Link between C-Sec and Qutub Minar opens today. http://bit.ly/bCXTbw
16 hours ago, comment
shekharg: I disagree, Twidroyd is the best RT @TweetDeck: New Android TweetDeck Beta is so great that we've skipped v6 & gone straight to 7!
11:05 AM Sep 02, 2010, comment
shekharg: Check out this UI http://nyti.ms/cr0Wcg
10:38 AM Sep 02, 2010, comment
shekharg: Let's declare Gurgaon a part of Pakistan till #CWG2010, to keep away the visitors from seeing the condition of roads here
9:34 AM Sep 02, 2010, comment
shekharg: RT @TechCrunch: Google Making Extraordinary Counteroffers To Stop Flow Of Employees To Facebook - http://tcrn.ch/bpdbYT by @arrington
2:18 PM Sep 01, 2010, comment