LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 04:21 PM   #1
AdultFoundry
Member
 
Registered: Jun 2015
Posts: 282

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, 04:26 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

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

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

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, 04:55 PM   #4
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
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 05:00 PM.
 
Old 11-08-2015, 05:04 PM   #5
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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, 07:11 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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, 12:16 PM   #7
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,137

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

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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



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 08:21 AM
Pulse Audio appears to be causing HD to thrash repeatedly Toadman Mandriva 3 01-08-2010 09:48 AM
LXer: SA govt officials meet to thrash out OSS progress LXer Syndicated Linux News 0 01-21-2009 02:41 AM
which are the folders for gnome thrash bin and kde wastebasket odysseus.lost Linux - Newbie 3 08-09-2005 05:27 AM
Wht does my hard drive thrash while I'm working? glenn69 Linux - Newbie 4 05-28-2004 11:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:14 PM.

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
Open Source Consulting | Domain Registration