study material 28 - 30

14 views
Skip to first unread message

phs...@asu.edu

unread,
Dec 15, 2014, 2:40:24 PM12/15/14
to unix-and-perl-...@googlegroups.com
I have downloaded the material in to my computer hence I am trying to change the code in .profile file from
HOME="/Volumes/USB/Unix_and_Perl_course"
to

HOME="Users/pshah/Downloads/Unix_and_Perl_course"

but my terminal keeps saying command not found. How do I fix this?


Also, what does ./hello.sh do? does it force unix to run the file even if it is not on PATH? Please explain material 28 - 30. Thank you

Keith Bradnam

unread,
Dec 15, 2014, 5:08:57 PM12/15/14
to unix-and-perl-...@googlegroups.com


On Monday, December 15, 2014 11:40:24 AM UTC-8, phs...@asu.edu wrote:
I have downloaded the material in to my computer hence I am trying to change the code in .profile file from
HOME="/Volumes/USB/Unix_and_Perl_course"
to

HOME="Users/pshah/Downloads/Unix_and_Perl_course"

but my terminal keeps saying command not found. How do I fix this?


You haven't told us *which* command it could not find.

 

Also, what does ./hello.sh do? does it force unix to run the file even if it is not on PATH? Please explain material 28 - 30. Thank you


. refers to your current directory. So this is a way of forcing Unix to (try to) run the contents of the file 'hello.sh' that is in your current directory. You might have other 'hello.sh' scripts elsewhere on your system, and if any of those are in directories which are earlier in your $PATH variable than the current directory, then you would only ever run the other scripts when typing 'hello.sh'.

Keith
Reply all
Reply to author
Forward
0 new messages