How do I access a folder which I can't sudo cd into?
cd
is a shell builtin, and sudo
only works with programs.
Try using either su -
or sudo -i
before changing directory. These will elevate your login session to that of the root user. Once finished making changes, make sure to type exit
to return to being a normal user.