shyam@DESKTOP-OO7EVK2:~$ sudo cd /var/lib/docker/overlay2/
[sudo] password for shyam:
Sorry, try again.
[sudo] password for shyam:
Sorry, try again.
[sudo] password for shyam:
sudo: 3 incorrect password attempts
shyam@DESKTOP-OO7EVK2:~$
Your topic title and your console output are in disagreement.
Judged by the output, the wrong password is used.
And even if you correct the password issue you cannot use sudo cd
as cd is not a command but a built-in shell instructions. If you shared the wrong output, you most likely had an error message saying “sudo: cd: command not found”.
You can either run sudo su
to switch to a super user, and use cd as root, or use commands directly where you are without changing directory. ls
is a command for example so that can be used with sudo.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.