[ubuntu-us-ma] 10,000+ files in a folder slows down ...
Algot Runeman
algot.runeman at verizon.net
Thu Jun 25 14:12:00 BST 2009
This might be one of those times to "carefully" use the command line
tools in the console.
you should be able to do "cp ~/folder/*jpg /media/" for all the jpeg
files, for example. After copying, you can verify the files and then
carefully follow up with "rm ~/folder/*jpg". Of course, if you don't
have as simple a situation as that, you'll need to begin study of the
file names so you can use some grep filtering, for example.
"Careful" is slower, but using the faster "mv" command also a bit more
able to trash stuff if you type the command wrong.
If you do this kind of job regularly, you can develop the steps and make
a shell script file to execute manually or with the cron utility so it
is an automated job.
Mark Sobell's "A Practical Guide to Linux Commands, Editors and Shell
Programming" is a great place to start. A quick Web search on shell
scripting will also give many good references.
--Algot
Brian DeLacey wrote:
> Does anyone have experience with folders containing lots of files in
> Ubuntu? Like 10,000+? The files are relatively small - the total disk
> size is under 1G.
>
> Ubuntu's GUI seems to have a difficult time managing folders of this
> size (eg. attempting to "select all" and copy so many individual/small
> files to another folder hangs - or takes incredibly long.)
>
> Any suggestions on how to manage this large number of small files
> efficiently?
>
> Thanks,
> Brian
--
-------------------------
Algot Runeman
47 Walnut Street, Natick MA 01760
508-655-8399
algot.runeman at verizon.net
Web Site: http://www.runeman.org
Open Source Blog: http://mosssig.wordpress.com
More information about the Ubuntu-us-ma
mailing list