Home > Programming > Shell Programming



Introduction to Shell Scripting

Sort Desciption:

Introduction to Shell Scripting by: Colin Sauze, 06/27/2005 http: //www ... From here on this tutorial will focus on bash. What is a shell script? A shell script is a file which ...



Content Inside:

Introduction to Shell Scripting by: Colin Sauze, 06/27/2005 http: //www. security docs. com/library/3402 This series focuses on shell scripting in Unix/Linux and focuses on using the bash scripting language. The assumption is that you are new to both Unix and programming. However you will still find things easier to understand if you have some programming experience in a high level language like Basic, C/C++, Java or Pascal/Delphi and some experience with Unix or Linux. What is a shell? In Unix (that includes Linux, OSX, BSD etc) , after you have been authenticated, you are presented with an interactive shell. If your login is a text based one then you will probably be presented with your shell as soon as youve logged in, if you use a graphical logon as many modern Unix systems do then you can access a command shell through a graphical front end such as X-Term, KDEs konsole or gnome-terminal. The shell allows you to issue commands to the system and instigate other processes. Each user on a Unix system has a default shell, (specified in /etc/passwd) that they will be launched into at login time. For most systems this is either bourne shell, also known as sh or the GNU Bourne Again Shell often known as bash, which is an extension upon the original bourne shell. There are several other common shells including csh, ksh and zsh, tcsh, these all offer pretty much the same features as bash and only tend to be used by people who started using Unix before bash was mature (mid 1990s) . You can find out what your default shell is by typing "echo $SHELL" at the command line. From here on this tutorial will focus on bash. What is a shell script? A shell script is a file which consists of commands you could normally type into the shell. By running the shell script all of these commands are then executed automatically as if you had typed them in one by one. Shell scripting languages include a number of commands similar to those found ...

Source: www.securitydocs.com


add to Google Reader add to Google Bookmark add to bloglines add to newsgator add to FURL add to digg add to webnews add to Netscape add to Yahoo MyWeb add to spurl.net add to diigo Bookmark newsvine Bookmark del.icio.us Bookmark @ SIMPIFY Bookmark MISTER WONG Bookmark Linkarena Bookmark icio.de Bookmark oneview Bookmark folkd.com Bookmark yigg.de Bookmark reddit Bookmark StumbleUpon Bookmark Slashdot Bookmark blinklist Bookmark technorati add to blogmarks add to blinkbits add to ma.gnolia add to smarking.com add to netvouz add to co.mments add to Connotea add to de.lirio.us

 

Related Files

basic shell programming

Filed under: Programming and Shell Programming
bash derives much of its programming functionality from shell variables. Weve ... builtin variables that are vital to shell programming. ...

Unix Shell Scripts

Filed under: Programming and Shell Programming
that file is called shell script language. Like other programming languages it has variables and flow control. statements (e.g. ifthenelse while for ...

UNIX Shell Programming

Filed under: Programming and Shell Programming
Page 1 of 1 ITC_UNIXsp ExecuTrain Course Outline UNIX Shell Programming IT0001 3 Days Description Students learn to read, write, and debug shell scripts, thus increasing ...