sudo: cd: command not found when trying to get to /var/log/apache2

Posted by Piers on Server Fault See other posts from Server Fault or by Piers
Published on 2010-12-31T13:58:03Z Indexed on 2010/12/31 14:55 UTC
Read the original article Hit count: 262

Filed under:
|
|

I'm running Ubuntu 10.04 and am having issues getting to the log files in /var/log/apache2

I can cd to most other places (I haven't tried every single file, obviously) but when I try to get to the above directory, I get the error message sudo: cd: command not found

... I've just tried something else and I can't cd when used in conjunction with sudo. I can use sudo when doing things like apt-get but it seems I can't change directory when using sudo.

I haven't been on this server for a while but I know I used to be able to do this.

© Server Fault or respective owner

Related posts about apache

Related posts about ubuntu