Release Digest: General: September 9, 2002 | Linux Today

Release Digest: General: September 9, 2002

Written By
Web Webster
Web Webster
Sep 10, 2002

[ Thanks to Jim Finn
for this link. ]

del

“Delete” that file… Then Bring it
Back.

Have you ever deleted a file, and then really regretted it? I have,
so the combination of laziness (recreating files is tedious!) and
boredom drove me to create “del”. “del” is a simple bash script I
wrote that works similar to GNOME’s wastebasket and MS Windows’
Recycle Bin. “del” stores the “deleted” files in $HOME/.garbage,
and it gives you the ability to empty the garbage, list its
contents, and restore a “deleted” file. When placed a users PATH
the use of “del” is quite simple:

jimfinn@jimfinn.marist.net> ls
myfile1  myfile2  myfile3  myfile4
jimfinn@jimfinn.marist.net> 
jimfinn@jimfinn.marist.net> del --list
Garbage Empty.
jimfinn@jimfinn.marist.net> del myfile1
jimfinn@jimfinn.marist.net> ls
myfile2  myfile3  myfile4
jimfinn@jimfinn.marist.net> del --list
total 8.0k
drwxr-xr-x    2 jimfinn  admins       4.0k Sep  7 16:54 . 
drwxr-xr-x   29 jimfinn  admins       4.0k Sep  7 16:21 ..
-rw-r--r--    1 jimfinn  admins          0 Sep  7 16:53 myfile1
jimfinn@jimfinn.marist.net> del --restore myfile1
jimfinn@jimfinn.marist.net> ls
myfile1  myfile2  myfile3  myfile4
jimfinn@jimfinn.marist.net> del myfile2
jimfinn@jimfinn.marist.net> ls
myfile1  myfile3  myfile4
jimfinn@jimfinn.marist.net> del --list
total 8.0k
drwxr-xr-x    2 jimfinn  admins       4.0k Sep  7 16:55 . 
drwxr-xr-x   29 jimfinn  admins       4.0k Sep  7 16:21 ..
-rw-r--r--    1 jimfinn  admins          0 Sep  7 16:53 myfile2
jimfinn@jimfinn.marist.net> del --empty
jimfinn@jimfinn.marist.net> del --list
Garbage Empty.

For more information, e-mail me: jimfinn@marist.net

To obtain “del” please visit:
http://jimfinn.marist.net/cgi-bin/index.cgi?=scripts-del

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.