trying to CD as sudo.

Dazed_75 lthielster at gmail.com
Thu Sep 9 12:35:21 MST 2010


Two things:
1-there is no need to sudo for a cd
2-cd is a built-in command, not a separate program that sudo can find

On Thu, Sep 9, 2010 at 12:30 PM, keith smith <klsmith2020 at yahoo.com> wrote:

>
> Hi,
>
> I'm on CentOS 5 and I notice that when I issue a CD command on the CL as
> sudo, such as "sudo cd /var/log/httpd/" I get the message "sudo: cd: command
> not found".  The tab key does not return any results either.
>
> I'm kinda new to sudo.  I used to just become root.  I'm trying to practice
> better behavior.
>
> Thanks for any suggestions.
>
>
>
>
>
> ------------------------
> Keith Smith
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>



-- 
Dazed_75 a.k.a. Larry

The spirit of resistance to government is so valuable on certain occasions,
that I wish it always to be kept alive.
  - Thomas Jefferson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20100909/8b0a2e5b/attachment.html>


More information about the PLUG-discuss mailing list