[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [SLUG] Simple Newbie Questions
On Tue, 27 Jun 2000, Matt wrote:
> Esp the /usr/local/bin .. when it comes to a Linux user's own stuff .. would
> you say that it's basically /home and /usr/local ?
Yep. Although lots of people also create a /src and all sorts of other
things. A seperate parition for your own stuff can be good as well (and
then symlink in your /home and /usr/local). This way you can do a new
install and not blow all your own stuff away.
> Also, Perl scripts CAN be run without #!/bin/sh on my system, it doesnt seem
> essential, is it essential in bash scripts ?
You basically make it the path to a program which will be able to execute
the script. So for perl you might do #!/usr/bin/perl . You can also get
perl to run the script by doing "perl scriptname", as long as perl is in
your path. The handy thing about butting the first line in is that you
don't need to know what program to use to run the script, just type the
scripts name. Clear as mud.
> Is using #!/bin/bash exactly the same ?
Yep, /bin/sh is symlinked to /bin/bash, on my system anyway.
I am sure there are some script kiddies here that can fill us in on all
the nitty gritty details.
Rodos
--
rodos@nospam.haywood.org | f u cn rd ths, u cn gt a gd jb n cmptr prgmmng. [Anon]
Camion Technology |
+61 2 9873 5105 |
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to slug-request@nospam.slug.org.au with
unsubscribe in the text