• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Available shells on SunOs

 
Akhilesh Trivedi
Ranch Hand
Posts: 1599
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suspect I am on a SunOne box, how do I see available shells on this machine? Can I run a shell script even in case I don't have a shell?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18098
50
Android Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that the "uname -a" command will tell you the basics of what OS you're running. Every Solaris system I ever worked with had me preset for bash, although it was an older and less-capable version of bash than what Linux uses.

probably the easiest way to tell is simply to search the system binary directories like so: "ls /bin/*sh", which would find things like bash, sh, ash, csh, ksh, and so forth. And doubtless a few false positives as well. Beyond that, you'd probably have to rummage through the system packages list.
 
Akhilesh Trivedi
Ranch Hand
Posts: 1599
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Holloway wrote:
probably the easiest way to tell is simply to search the system binary directories like so: "ls /bin/*sh", which would find things like bash, sh, ash, csh, ksh, and so forth.


Found some. Thanks again.!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic