shell confusion..what is diff between bash, ksh, csh, tcsh..??
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.
Re: shell confusion..what is diff between bash, ksh, csh, tcsh..??
Quote:
Originally posted by servnov What is the difference between different shells? How are bash, sh, tcsh, csh, ksh, zsh, and whatever other ones different?
Isn't that sort of like asking someone to tell you what's the diiference bewteen a ford, chevy, nissan, volvo, toyota, cadillac, bmw, fiat, kia?
Don't confuse yourself to much. Linux is a massive universe and you can get lost pretty fast. It is also why it is in my opinion, so powerful.
SH and BASH are the most common shell on popular distros today. BASH (Boure Again Shell) combines most of the good features from all of those other shells, it's syntax is pretty common from a programming standpoint and you will not need to use any other for your scripting needs.
If you learn BASH scripting, along the way you will read about others shells origins and functions in context of what you are learning and it will become clearer.
Let's just say that BASH is the result of the evolution of shells in UNIX / Linux systems.
Hey, I have a Chevy and is awesome Thanks, I have always used bash too, but I noticed my dad using csh on old solaris systems (which seemed to be the default on solaris). He never does shell scritping...
Hey, I have a Chevy and is awesome Thanks, I have always used bash too, but I noticed my dad using csh on old solaris systems (which seemed to be the default on solaris). He never does shell scritping...
it doesn't matter what shell you use when you write a script (in a file)
that's why you always start with
Code:
#! /bin/bash
when you write a bash script. You can execute this under tcsh or csh. The system recognizes this line and uses bash to execute the script.
I think all unix system use csh or tcsh as default
Last edited by perfect_circle; 11-18-2004 at 08:40 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.