sudo cd command doesn`t appear to work.
Igor Schein
igor at txc.com
Wed Jul 31 14:21:56 EDT 2002
On Wed, Jul 31, 2002 at 05:18:13PM +0100, menno koopmans wrote:
> I am trying to run the command sudo cd /tmp on a unix
> machine and no errors are returned when I run the
> command however a pwd shows I haven`t changed
> directory. I am able to use cd /tmp. I have tried
> specifying full path names and that doesn`t help.
>
> Any assistance would be much appreciated.
cd operation takes place in a subshell, and doesn't effect
CWD of your current shell.
Igor
More information about the sudo-workers
mailing list