Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello, this should be in the newbie^^2 forum, I know.... But I just downloaded cygwin to my xp machine.....Tried my first experimental script and created it one level directly below where cygwin put me by default. The script, named showtwo says....
#!/bin/bash
echo $1
echo $2
But bash apparently can't find it.....
The name of the script is showtwo, but I also tried naming it showtwo.sh; no dice.
Hello, this should be in the newbie^^2 forum, I know.... But I just downloaded cygwin to my xp machine.....Tried my first experimental script and created it one level directly below where cygwin put me by default. The script, named showtwo says....
#!/bin/bash
echo $1
echo $2
But bash apparently can't find it.....
The name of the script is showtwo, but I also tried naming it showtwo.sh; no dice.
I am a little confused here. Is this a Windows Xp machine or a Linux Box?
right. I did not know (forgot since last used unix 25 years ago)that...
Furthermore, if I am a level above where the script is, I invoke by...
./oneleveldowndir/showtwo
and so on....
so the natural followup is... what do I do to make a script invokable without specifying the full pathname? Or please refer to appropriate tutorial so I don't waste more time here....
It's a (sane!) default for unix/linux shells not to have
the current working directory in the path. Either use the full
path, or a relative path to execute the script.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.