LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-08-2015, 05:21 PM   #1
AdultFoundry
Member
 
Registered: Jun 2015
Posts: 245

Rep: Reputation: Disabled
Windows-like thrash can for Linux


Is there something like this out there? It would need to be good. I would like to install it on CentOS7 (if this may make any difference, probably not).
 
Old 11-08-2015, 05:26 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,750

Rep: Reputation: 271Reputation: 271Reputation: 271
Both the KDE and gnome desktops have trash cans.

------------------
Steve Stites
 
Old 11-08-2015, 05:30 PM   #3
AdultFoundry
Member
 
Registered: Jun 2015
Posts: 245

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jailbait View Post
Both the KDE and gnome desktops have trash cans.

------------------
Steve Stites
I only use command line, no GUIs.
 
Old 11-08-2015, 05:55 PM   #4
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 17.0 at present.
Posts: 1,167

Rep: Reputation: 201Reputation: 201Reputation: 201
If you're using the CLI surely you would just use
Code:
rm <whatever>
(assuming you have the necessary permission.)

Am I missing something? The Windows trash can is used with a GUI, how would a Linux CLI alternative be similar? You're talking apples and oranges.

Play Bonny!


Last edited by Soadyheid; 11-08-2015 at 06:00 PM.
 
Old 11-08-2015, 06:04 PM   #5
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 5,991

Rep: Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611
You could get into the habit of using mv instead of rm -- perhaps even try to create an alias as suggested on Stack Exchange. Note I haven't tried this myself so you probably ought to do some reading before following any of the suggestions on the linked page.
 
Old 11-08-2015, 08:11 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
A classic soln if you think you might change your mind is to copy the original file to that with a date/timestamp of when you did it eg
Code:
cp /etc/hosts /etc/hosts.20151109_1205
NB: this format (YYYYMMDD_HHMM) sorts naturally in ls etc.

Personally I'd be wary of altering a cmd to do something nonstd; you might break script somewhere (not to mention fill up your disk).

It might be an idea to instantiate the above as a fn in the login script as eg
Code:
rma /etc/hosts  #  'rma' = custom rm for AdultFoundry
and just get in the habit of using that.
 
Old 11-09-2015, 01:16 PM   #7
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,158

Rep: Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223
I think what you need is this utility:
https://github.com/andreafrancia/trash-cli
 
Old 11-09-2015, 02:57 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,817

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
why would you expect a Microsoft like GUI trash can in a text terminal only install
in a GUI (Gnome3,kde4,xfce,... ) Desktop install there is
-- IT IS A GUI!!!



use the " mv " command as above
and make a cron job to clean out the folder you set up
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How To Access Linux Files In Windows When Dual Booting Linux, Ubuntu, Linux Mint And Windows LXer Syndicated Linux News 0 09-05-2015 09:21 AM
Pulse Audio appears to be causing HD to thrash repeatedly Toadman Mandriva 3 01-08-2010 10:48 AM
LXer: SA govt officials meet to thrash out OSS progress LXer Syndicated Linux News 0 01-21-2009 03:41 AM
which are the folders for gnome thrash bin and kde wastebasket odysseus.lost Linux - Newbie 3 08-09-2005 06:27 AM
Wht does my hard drive thrash while I'm working? glenn69 Linux - Newbie 4 05-28-2004 12:04 PM


All times are GMT -5. The time now is 10:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration