Linux - GeneralThis 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.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Remember, that will delete every single *.doc file on your system, which is probably not what you want.
Yes, i know that, are the function of "locate" are same as "find"? If i can't find that file i "deleted" using "locate", is that mean i will also can't find that file using "find"?
Yes, that is true that both locate and find commands help you to find files that you are looking for. I would like to mention that with find you can do much more which is not possible with locate command.
find performs a live search whereas locate depends on the database that got create using updatedb command. So, locate command does not perform a live search.
I consider find much more powerful then locate as there are many options that you can use with find that can help you ease and narrow down the search.
@ MTK358,
Yup, I know that is the reason I suggested to run it first with -print and then check and confirm if you OP want to delete them or not. :-)
Last edited by T3RM1NVT0R; 08-05-2011 at 03:10 PM.
Yes, that is true that both locate and find commands help you to find files that you are looking for. I would like to mention that with find you can do much more which is not possible with locate command.
find performs a live search whereas locate depends on the database that got create using updatedb command. So, locate command does not perform a live search.
I consider find much more powerful then locate as there are many options that you can use with find that can help you ease and narrow down the search.
@ MTK358,
Yup, I know that is the reason I suggested to run it first with -print and then check and confirm if you OP want to delete them or not. :-)
I just delete a file using SHIFT+DELETE, no space free out, i try to use find, updatedb+locate, no luck, it output notings, so where are my files?
Alright. I have to say that it is just not possible.
The only reason that I can think of now is some kind of sync issue which is making your system to think that the file is still there when it is not and your system is reporting free space on the basis of that.
Did you try rebooting your system after deletion of files?
Please paste the output of menu.lst and fstab file.
How are you determining free space? Have you tried running the df command and checking the output there?
Also may I suggest using the command line for such tasks.
All those files are still counted by df (or dolphin).
Below an example of a vi session and what happens; the same might happen when you permanently delete in dolphin. In a terminal I opened a jpg file using vi; this created a swp file. I used a jpg because is has a reasonable size for demonstration.
In another terminal
All those files are still counted by df (or dolphin).
Below an example of a vi session and what happens; the same might happen when you permanently delete in dolphin. In a terminal I opened a jpg file using vi; this created a swp file. I used a jpg because is has a reasonable size for demonstration.
In another terminal
Note:
there have been a couple of questions about 'du' and 'df' reporting different 'free space'. I did the same exercise using 'du'
Code:
wim@desktop-01:~$ du -k --max-depth=1 /photos/wim/
33120 /photos/wim/
wim@desktop-01:~$ rm /photos/wim/.IMGP2310.jpg.swp
wim@desktop-01:~$ du -k --max-depth=1 /photos/wim/
33020 /photos/wim/
wim@desktop-01:~$
'du' straight away reported the 'new' size' after I deleted the swp file
Thanks for help, i don't know why it working again lol, but i remembered that i deleted 30 MB boot file it doesn't release the space, now i tried create a zero file(/dev/zero), it worked again lol
May be it should some kind of log problem, cuz i compiled the kernel with lots of debug mode, maybe when i deleted boot it created lots of log rapidly
Last edited by hopkinskong; 08-06-2011 at 06:58 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.