On Sun, Jan 30, 2005 at 05:56:51PM +0200, Nadav Har'El wrote: > On Sun, Jan 30, 2005, David Suna wrote about "ls doesn't return on > /var/www/html": > > I have a RedHat 9 system. Everything seems to be working fine. I tried > > to do an ls /var/www/html and the command hangs. Doing the same on other > > directories is fine. I assume that some process has the directory open > > which is why the ls is hanging. I tried restarting httpd but that didn't > > help. > > On Linux, you cannot hang on a directory listing because some other process > is using that directory. The cause has to be something else. > > Some common causes for ls blocking: > > 1. The directory has many thousands of files, and while ls is looking at > the details of all of them, sorting them, etc., it cannot return. > > If this is the problem, then waiting enough time will finally give you > the results. Also, you'll see the CPU being used (try "top" in another > window) by "ls". Is that what you see? Try using "ls" without any > parameters (no -l, no -t, no -F, etc.) and see if the results are faster.
ls does sort by default . There is also a resonable chance that 'ls' is an alias to 'ls -F' or something . So you can try: /bin/ls -U > > On a different topic, what is the recommended way for keeping a RedHat 9 > > system up to date? > > Check out http://fedoralegacy.org/ > > If I'm not mistaken, though, they don't support Redhat 9 any more. > You should seriously consider upgrading (to Fedora Core 3, probably). Last I heard they didn't do a very good job at providing timely updates. Better than nothing, I suppose. > > -- > Nadav Har'El | Sunday, Jan 30 2005, 20 Shevat 5765 > [EMAIL PROTECTED] |----------------------------------------- > Phone +972-523-790466, ICQ 13349191 |We are Microsoft. You will be > http://nadav.harel.org.il |assimilated. Resistance is futile. > > ================================================================= > To unsubscribe, send mail to [EMAIL PROTECTED] with > the word "unsubscribe" in the message body, e.g., run the command > echo unsubscribe | mail [EMAIL PROTECTED] -- Tzafrir Cohen | New signature for new address and | VIM is http://tzafrir.org.il | new homepage | a Mutt's [EMAIL PROTECTED] | | best ICQ# 16849755 | Space reserved for other protocols | friend ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
