LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-18-2007, 11:20 PM   #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-18-2007, 11:38 PM   #2
fukawi2
Member
 
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...
 
  


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

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 06:23 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
Open Source Consulting | Domain Registration