I have a very strange problem, one that may be too difficult to diagnosis without machine access, but maybe someone here may be able to help.
I am using OS X, and on my local machine
ls executes instantly. However, when I log into one particular remote server, and execute
ls in the home directory only, it takes about 15 seconds to return. And there's only a few files in the home directory. If I switch to a sub-directory, or a higher directory,
ls executes immediately.
Now here's the weird thing: if I use a different computer to access the remote server and run
ls on the home directory, it returns immediately.
In summary: my particular laptop + one particular remote server + one particular directory = slow ls execution
Any ideas? Or at least a way to go about debugging this?
EDIT: Okay, more weirdness. It's only slow on the first execution of ls. All subsequent executions are fast. I guess I never bothered to type it again after it was so slow the first time.