I am using WSL/Ubuntu on Windows 10. I want to go to /mnt/c. Typing cd /mnt/c is working. But when I enter the command into a shell script, it is not.
I added the line:
cd /mnt/c
to a shell scriptI used
chmod +x
. When executing the script, the position in the shell did not changeI added the command
ls
ls /mnt/c was executed
How can I move to /mnt/c
using a script?
thansk Harald