Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Linux / UNIX and the fly likes what shell is this Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "what shell is this" Watch "what shell is this" New topic

what shell is this

Raj Ohadi
Ranch Hand

Joined: Jun 30, 2006
Posts: 316
I saw a script start with

#! /bin/sh

Is this a Korn shell script ? or Born shell script ? or C shell script ? How can I tell ?
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42958
This list may help. There are others as well, like zsh.
Darrin Cartwright
Ranch Hand

Joined: Dec 27, 2002
Posts: 107
You also might want to run the following command:

Quite often /bin/sh is a symbolic link to another shell, usually bash in modern Linux distributions.

Life is good on the Ponderosa,<br />but mind where you step.
I agree. Here's the link:
subject: what shell is this
It's not a secret anymore!