Review your favorite Linux distribution.
Go Back > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.


  Search this Thread
Old 02-18-2007, 11:20 PM   #1
LQ Newbie
Registered: Dec 2006
Distribution: Ubuntu
Posts: 25

Rep: Reputation: 15
Lightbulb Deleting files from command line goes to trash?


I'm trying to delete some old and big files from a server running Red Hat Linux Enterprise release 3. Do these files go to a recycle bin or something?
Old 02-18-2007, 11:38 PM   #2
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 449

Rep: Reputation: 34
No - not if you're doing them from the CLI.

The "Recycle Bin" and "Trash" are a function performed by the GUI (Win32 "Explorer", "Gnome", "KDE" etc). Working directory at the CLI ("bash" etc) doesn't provide this functionality.

You might be able to do something funky with an alias in bash to alias 'rm' to 'mv' so bash will actually move the files you are trying to delete to /trash or something similar. I'm not sure, that's a bit over my head, but someone else may be able to elaborate...


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
Deleting from command line Reaver76 Linux - Newbie 2 09-27-2006 04:42 PM
Restoring files from the trash (cmd line) mtoneil Linux - General 1 09-02-2005 09:32 PM
Deleting from trash can KezzerDrix Mandriva 1 03-27-2005 10:12 PM
problem deleting file using solaris command line. szehanz Solaris / OpenSolaris 2 03-22-2005 07:52 PM
Running .sh files from the command line zulu1_hl Linux - Newbie 3 11-01-2002 12:05 PM > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 11:56 AM.

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