There is a particular directory that I am working with that has about 50,000 files in it. When I try to list the contents using
ls -f -1 is generates a list that repeats forever. Here are a couple of other commands I've tried that don't work at all:
Command Result ------- --------------- find "killed" updatedb "updatedb: memory exhausted"
I even wrote a python script to list the files, but it didn't work either.
This problem directory is a Windows file share, so maybe that is part of the problem. When I list the contents in Windows, it does fine. When I use Windows powershell to copy the contents of the directory into a new directory and then try to list the contents on my Linux (RHEL) system, it works fine.
Lastly, in Windows, I compared the contents of original directory that was giving me problems with the new directory I just created. I did this by listing in windows powershell with the command 'dir -Force', to include hidden files. I diff'ed the two files and they were exactly the same.