Currently I have a file called coding.sh
containing:
#!/usr/bin/env bash
echo "to programming folder"
cd /home/jchong/Documents/Programming
I have tried the sudo chmod +x coding.sh
command, changing /home/jchong/
with $HOME
or ~
,changing what is after the #!
, and ensuring the spelling is correct. However when running ./coding.sh
the pwd
does not change. Also, I am running this all in my anaconda environment called base
. Was wondering if you guys could please help me out?