From owner-freebsd-newbies@FreeBSD.ORG Fri Dec 31 00:11:41 2004 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 951ED16A4CE for ; Fri, 31 Dec 2004 00:11:41 +0000 (GMT) Received: from sccimhc91.asp.att.net (sccimhc91.asp.att.net [63.240.76.165]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0310E43D46 for ; Fri, 31 Dec 2004 00:11:41 +0000 (GMT) (envelope-from freebsd@nbritton.org) Received: from [192.168.1.10] (12-223-129-46.client.insightbb.com[12.223.129.46]) by sccimhc91.asp.att.net (sccimhc91) with ESMTP id <20041231001139i9100rg1ume>; Fri, 31 Dec 2004 00:11:40 +0000 Message-ID: <41D49936.4000802@nbritton.org> Date: Thu, 30 Dec 2004 18:11:34 -0600 From: Nikolas Britton User-Agent: Mozilla Thunderbird 1.0 (X11/20041219) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mike Jeays References: <49B5BEF2.7CCF22F4.0F75C5EC@netscape.net> <1104431994.1669.19.camel@chaucer> In-Reply-To: <1104431994.1669.19.camel@chaucer> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: Jeff Lewis cc: freebsd-newbies@freebsd.org Subject: Re: Shell Games X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Dec 2004 00:11:41 -0000 Mike Jeays wrote: >On Thu, 2004-12-30 at 13:00, Jeff Lewis wrote: > > >> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * >> * * >> * Sue & Greg: Please don't hesitate to suggest that I take these * >> * comments to a more appropriate list. I do not want * >> * them to just be allowed as in times past. * >> * * >> * I believe that all of these postings are within * >> * the list's charter. Perhaps they will be a good * >> * example. If not, then perhaps I will concur with * >> * you both that the list should be disbanded. But * >> * I figure that I have roughly 30 days to push the * >> * envelope. Be purists so that newbies understand. * >> * * >> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * >> >>FIRST >>----- >>I chose FreeBSD to house my company's new external web server primarily >>because of it's stability. I've only played with linux, but enough to >>feel like I was on a real whirlwind of updates all the time. I figured >>that if FreeBSD was stable enough for Yahoo, Google and Pair (my ISP) >>to base THEIR business on, then it should be stable enough for this >>little business as well. >> >>SECOND >>------ >>I have time. I have 3-6 months to get this box up, stable and secure. >>Security is this huge black hole for me. I don't even know enough to >>know how much I don't know. I am chomping at the bit to learn. >> >>THIRD >>----- >>I primarily come from an MSDOS 3.0 - 6.22 world. I beta tested Win95. >>I barely used Win98, preferring WinNT. But I've used a multitude of >>computers throughout my career, including TRS-DOS, Concurrent CPM, >>PR1MOS, and tons of embedded stuff. I spent roughly 25 years in an >>electronics manufacturing environment. I got into IT as a Netware 3 >>and 4 administrator. Took a job at a fast growing company in the >>center of a major US city and helped them setup WinNT servers, as >>well as create a WAN throughout the US. The corporate mandate there >>was Microsoft. No FOSS whatsover, period. >> >>Today, I am an administrator for a small Microsoft based Win2k3/WinXP >>network, in a small company, located only 2 miles from my home. I am 47, >>eat lunch at home everyday and see my wife and teenagers every night. >> >>But I choose what we run here. We were bound to an app that mandated >>Microsoft SQL Server. We had no such mandate for the new web server. >> >> >>AND FINALLY! >>------------ >>I have played with Unix, or worked in a very small way on production >>SunOS computers off and on for years. I never understood the whole >>concept of multiple shells and/or scripting languages. I've read about >>them, but there MUST be some teflon in the cranium somewhere. >> >>I understand this next question could invoke what I've termed digital >>zealotry, but as a FreeBSD newbie, I gotta know. >> >>Why are there so many different shells? Does each shell interface >>directly with the kernel independantly? AND (here it comes) which is >>the [right one/best one] to use? >> >> > >There are several shells because each author felt he could improve on >what had been done before - and to scratch a personal itch, perhaps. >There isn't a 'best' shell - this is the stuff of flamewars. > >My personal preference is Bash. It is readily available on most Unixes, >and has a good selection of features. I don't so much like the csh/tcsh >family, which have a somewhat different syntax. > >It pays to learn one thoroughly - they are so similar that if you use >several, it is easy to get confused. > > >>I guess I am TOO comfortable with the command.com/batch file world >>and that I need to open my mind a little. I've always felt that CMD/Batch >>was more of a limiting factor than a plus, but I could alway use KIX >>or Novell's login scripts to get network scripting done. For everything >>else, there was perl. I never had to chang a shell, replaced command.com. >>Just used a different scripting language. Perl has existed a lot longer >>in the unix world than the MS world. Why not script everything in that? >> >>So why CSHELL as a shell AND a scripting language, BASH as a shell AND >>a scripting language? SHELL, CSHELL and BASH all on the same machine? >>Do they have specific purposes? Should I log in as root using one type >>of shell but log in as my user account using another type of shell? >> >> > >There is no reason to have separate shells for batch and interactive use >- this just increases the learning curve. > >Many people recommend keeping sh as the root shell for FreeBSD, but lots >more disagree. The benefit is that sh should always be available, even >in a badly crippled machine. (If even sh won't work, the machine is >probably toast) > > I thought csh was the default shell for freebsd....yea it is: root:********************************:0:0::0:0:Charlie &:/root:/bin/csh >>I guess that I am leaning towards BASH for everything. I have an >>O'Reilly book for BASH. But if I do so, am I missing some rich feature >>set somewhere else? >> >>Is there a good rule of thumb for when I should not use a BASH script >>and go to a PERL script? >> >> > >If you can't do it easily in Bash, then using Perl makes sense. It >depends on your skill level - Bash can do just about anything, but the >harder things are very tricky sometimes. > > >>URLs gladly accepted for places to learn more. >> >>Jeff >> >> >> >> Do you remember the TMTOWTDI motto for perl and the underlying message in it jeff?......