This question already has an answer here:
- Why doesn't `sudo cd /var/named` work? 4 answers
I found the strangest thing
sudo cd $pwd sudo: cd: command not found
I am able to cd as a normal user.It seems that PATH is not set properly for su.
How do I fix that?