Whenever I do a "cd" at the Konsole, I get a warning msg

(echo: Command not found.

I think this happens because Konsole tries to output the path to the new directory, but instead of doing echo $cwd, I've done (echo $cwd. Now, I dont remember where I did this. Its not in my .cshrc, nor in my .cshrc_user file. Where else should I look for it? It'll also be fine if I can just turn off this feature, but how can I do that? Thanks

  • Maybe it's in .login? – Barmar Mar 7 '13 at 7:19
  • What's your shell? Does \cd work? Is this a Linux system or have you installed KDE on a Unix box? – terdon Mar 7 '13 at 11:54

Check to see what is in your PS1 variable.

You can try something like this in your home directory to find which file you modified it with:

grep PS1 .[a-zA-Z0-9]*

I personally like to use:

export PS1="\\\${PWD}
\`/usr/xpg4/bin/id -un\`@\`uname -n\`$ "

The location of the "id" executable might be different for you. Try this to find out where it is:

type id

You need one that takes the parameters "-un"

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.