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

Notices



Reply
 
Search this Thread
Old 02-19-2007, 12:20 AM   #1
HSN
LQ Newbie
 
Registered: Dec 2006
Distribution: Ubuntu
Posts: 25

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


Hello,


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-19-2007, 12:38 AM   #2
fukawi2
Member
 
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 448

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


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


All times are GMT -5. The time now is 10:54 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration