File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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: 42959
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.
It is sorta covered in the JavaRanch Style Guide.
subject: what shell is this
jQuery in Action, 3rd edition