Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-13-2003, 09:42 AM   #1
Registered: Nov 2003
Location: UK mostly.
Distribution: Slackware 9.1
Posts: 103

Rep: Reputation: 15
Removed files-where have they gone!!!????

This is a case of a shell script gone bad. I was trying to use a script to move the contents of a directory in my home directory into the trash.

But looks like it all went wrong as all the directories in my home started to vanish before my very eyes. Fortunatly there is nothing too important cos I have just installed but I spend most of today writing some mp3's there and there are 1 or 2 other files I need.

Think it is bad cos they are not in the trash. My script used rm -rf * - Looks like this was an oversight!

Old 11-13-2003, 12:22 PM   #2
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
What you have done is similar to removing files in a cmd window in Windows -- the files are just removed, they don't go to the trashcan. Compare this to deleting files in the file explorer (Windows) or Nautilus (Gnome).

If you want to move your files to the Trashcan you should have written something like
mv * ~/.Trashcan
Then you would have moved the files to your .Trashcan (DOT-Trashcan) directory.

Your files are gone, dude!
Old 11-13-2003, 01:13 PM   #3
Registered: Oct 2003
Distribution: Debian
Posts: 39

Rep: Reputation: 15
"If you ever drop your keys into a river of molten
lava, let'em go, because, man, they're gone." --Jack Handy

The good thing is that you didn't lose anything really important. Just think, this learning experience could have happened later on with critical files.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
removed files from /etc Spartan552 *BSD 8 11-08-2005 07:16 PM
Gateway ip address removed from /etc/sysconfig/network files ehedetniem Linux - Newbie 2 04-12-2005 10:29 AM
how to delete all traces of already removed files? randomx Linux - Security 2 04-05-2005 01:59 AM
Kernel files removed Zi5 Red Hat 44 05-06-2004 09:56 PM
kernel files removed cbarbot Linux - Newbie 1 04-14-2004 01:05 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:39 PM.

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