Re: Problem with ls on home directory



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
.



Relevant Pages

  • Re: Problem with ls on home directory
    ... I am facing strange problems with running ls on my home directory. ... Then do "alias ls", and see if you have an alias named ls. ... run the first ls found with the "whereis ls" command above. ... What it will *not* do is run a shell function named ls. ...
    (comp.os.linux.misc)
  • Re: variables
    ... CMDEXTVERSION System returns the version number of the current Command Processor Extensions. ... HOMEDRIVE System returns which local workstation drive letter is connected to the user's home directory. ... NUMBER_OF_PROCESSORS System specifies the number of processors installed on the computer. ... TEMP or TMP System and User return the default temporary directories for applications that are available to users who are currently logged on. ...
    (microsoft.public.windows.server.sbs)
  • Re: The one pronoun problem
    ... generally change it with a command line parameter. ... Every Windows application shortcut has a property for what directory it starts in. ... However, most Windows programs when displaying a file chooser dialog, will start with the user's home directory, the C:\ directory or My Computer. ...
    (comp.lang.java.programmer)
  • Re: passing variable to objShell.Run command
    ... When debugging problems like this, manually, in a command line ... create a command string that works for any of your user names. ... DSGET command on those users. ... adjustments in queries looking for users with the home directory and ...
    (microsoft.public.scripting.wsh)
  • Re: passing variable to objShell.Run command
    ... checking user objects for a home directory and clearing it if they ... When debugging problems like this, manually, in a command line window, ... create a command string that works for any of your user names. ... DSGET command on those users. ...
    (microsoft.public.scripting.wsh)