dapper sudo

Florian Diesch diesch at spamfence.net
Fri Jul 7 13:59:26 UTC 2006


boricua <boricua at despiertapr.com> wrote:


> but i just tried sudo cd /var/lib/mysql/wordpress
>
> and i get command not found

cd is not a regular command but a shell builtin so you have to use 
 sudo sh -c cd /var/lib/mysql/wordpress
But as the current working directory is just a state of a process cd
only affects the shell it is called from. Here this shell is just
exiting after executing cd so the whole thing is pretty useless.


   Florian
-- 
<http://www.florian-diesch.de/>




More information about the ubuntu-users mailing list