Shell Scripting - Shell Scripting Shell Programs Shells are...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Shell Scripting
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Shell Programs Shells are programs used to interact with a computer using a command line. They used to be the only way that users could interact with the computer. Now there are Graphical Shells like Gnome, KDE, Windows Explorer, Macintosh Finder, etc that offer similar functionality. GUI Shells can do many of the tasks of command line shells but not all of them. Shells are used to make many administration procedures automatic: backup, program installation, Web services.
Background image of page 2
Shell Programs When a command runs, the OS checks first if the file is an executable file with a known format (ELF, a.out). If it is not, then it checks the first line for a “#! interpreter-program”, if it is there, then it runs the interpreter program and passes the file as input. In any case, a command needs to have the execute permissions set to be able to run.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
/bin/sh – Standard UNIX Shell /bin/ksh – Korn shell (more powerful) /bin/bash – GNU shell
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/30/2012 for the course CS 252 taught by Professor Gustavorodriguez during the Fall '11 term at Purdue University-West Lafayette.

Page1 / 9

Shell Scripting - Shell Scripting Shell Programs Shells are...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online