Re: Problem with ls on home directory
- From: floyd@xxxxxxxxxx (Floyd L. Davidson)
- Date: Sat, 29 Apr 2006 08:09:42 -0800
Geico Caveman <spam@xxxxxxxxxxxx> wrote:
Hello,
I am facing strange problems with running ls on my home directory. I issue
ls, it sits and waits around for 2-5 minutes before it responds. The same
happens when I try to do any file operations with other applications (like
attaching something to my email). Its almost as if it is timing out for
something. This does not happen anywhere else down the directory tree.
To find out what was going wrong, I issued strace ls, which ran immediately.
What do I check ?
Find out *exactly* what you are running! (The rest of this
assumes you are using bash as a login shell.)
First, do "whereis ls", and see if the first item listed
is /bin/ls, or something else. (If it is something else, your
PATH variable is set incorrectly, and whatever it is you are
running is probably a trojan. Specifically if there is an
executable named ls in your home directory, your PATH is
wrong and you've been hacked.)
Then do "alias ls", and see if you have an alias named ls. If
so, "unalias ls" to get rid of it, and then see what you have.
Then do "command ls", and see if that runs properly. It will
run the first ls found with the "whereis ls" command above.
What it will *not* do is run a shell function named ls. If just
"ls" does something different than "command ls", look to see
where you are defining a shell function for ls.
--
Floyd L. Davidson <http://www.apaflo.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) floyd@xxxxxxxxxx
.
- Follow-Ups:
- Re: Problem with ls on home directory
- From: Geico Caveman
- Re: Problem with ls on home directory
- Prev by Date: Re: Leafnode filtering issue
- Next by Date: Re: Problem with ls on home directory
- Previous by thread: Leafnode filtering issue
- Next by thread: Re: Problem with ls on home directory
- Index(es):
Relevant Pages
|