LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (http://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   Deleting files from command line goes to trash? (http://www.linuxquestions.org/questions/linux-enterprise-47/deleting-files-from-command-line-goes-to-trash-530297/)

HSN 02-19-2007 12:20 AM

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?

fukawi2 02-19-2007 12:38 AM

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


All times are GMT -5. The time now is 06:36 PM.