-   Linux - Newbie (
-   -   bash script error (

tuts73 04-14-2012 12:13 PM

bash script error
hi all... im a newbie to all this. i need help with a simple script. i have to change to one directoy then to another but i get an error cd: /~ no such file or directory

Can you help plz..ty


cd /tmp
cd /~

uhelp 04-14-2012 12:27 PM

First this is wrong.
Usually there is no userhome under /
should read

cd ~
But this does not work on all *nixes.
Use instead

cd $HOME

tuts73 04-14-2012 12:31 PM

ahhh what an A-hole i am .... thank you

All times are GMT -5. The time now is 09:21 PM.