permaculture playing cards*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "what shell is this" Watch "what shell is this" New topic
Author

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
Marshal

Joined: Mar 22, 2005
Posts: 41128
    
  45
This list may help. There are others as well, like zsh.


Ping & DNS - my free Android networking tools app
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: http://aspose.com/file-tools
 
subject: what shell is this
 
Similar Threads
issue in passiing variable to shell script
to check and start a process
database access in shell script
How can I apply a XSL to the result of another XSL?
Detecting JRE