LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   file location anomaly!! (https://www.linuxquestions.org/questions/linux-newbie-8/file-location-anomaly-913624/)

Zulujr 11-15-2011 04:51 AM

file location anomaly!!
 
1.Recently, I deleted some files using my win xp os.I firstly transferred them to the recycle bin and them deleted them permanently. After logging off from my win xp os, i logged in to linux ubuntu os. There i saw a new folder called $recycler which was located on the same local disk drive where i had stored my files before deleting.I opened the $recycler folder and found that those deleted files were still present on the folder. Can anyone explain how does this happen?

2. Secondly, using my lockbox in win 7 os i hid some videos and other files and logged off. Then i logged onto linux ubuntu and found OUT that the files are not hidden(of course that's true) and i was able to watch those videos. Then, i decided to delete those files and logged off from linux. Again, i rebotted win 7 and went to the disk drive where the hidden files were located, there i saw another new folder called "thrash" folder and inside it were the files that i hid; now it's not hidden anymore. how does that happen????
(note: i'm not using any virtual machine.)

segmentation_fault 11-15-2011 06:30 AM

For the first question I have no answer. It looks a bit strange.
But, for the "hidden" files, bear in mind that Windows manipulates file permissions etc completely differently from Linux. In fact, NTFS does not support Linux/Unix file attributes at all. So that hidding did not have any effect on Linux at all. If you want to hide a file in Linux you add a dot (.) as the first character of the filename, however that file is still easily accessibe, eg "ls -a". For example:
Code:

$ touch a_file
 $ ls
a_file
 $ mv a_file .a_file
 $ ls
 $ ls -a
.  ..  .a_file
 $

Now for the Trash folder you saw, if you deleted these files from a file manager in Linux, it just moved them to a special folder called Trash, the equivalent of Windows' Recycle Bin. If you delete them from command line with rm they should be totally deleted.

Zulujr 11-17-2011 07:30 AM

Thank you. I will try that one out.


All times are GMT -5. The time now is 02:04 AM.