This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
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: 42965
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!