Linux Shell Scripting Tutorial - A Beginner's handbook:About
This book is for students and Linux System Administrators. It provides the skills to read, write, and debug Linux shell scripts using bash shell. The book begins by describing Linux and simple scripts to automate frequently executed commands and continues by describing conditional logic, user interaction, loops, menus, traps, and functions. Finally, book covers various sys admin related scripts such as making a backup, using cron jobs, writing interactive tools, web based tools, remote login, ftp and database backup related scripts. This book is intended for Linux system administrators or students who have mastered the basics of a Linux Operating System. You should be able to:
- Login to local or remote Linux system.
- Use basic Linux commands, such as cp, mv, rm, man,less, chmod and others.
- Create and edit text files in vi or any other text editor.
- GUI is not required except for interactive GTK+ based GUI scripts.
This book is available under Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported.
- You are free:
- to Share — to copy, distribute and transmit the work
- to Remix — to adapt the work
- Under the following conditions:
- Attribution — If you republish this content, we require that you:
- Indicate that the content is from "Linux Shell Scripting Tutorial - A Beginner's handbook" (http://bash.cyberciti.biz/guide/Main_Page), and nixCraft (http://nixcraft.com/).
- Hyperlink to the original article on the source site (e.g., http://bash.cyberciti.biz/guide/What_Is_Linux)
- Show the author name (e.g., Vivek Gite) for all pages.
- Hyperlink each contributors name back to their profile page on the source wiki (e.g., http://bash.cyberciti.biz/guide/User:USERNAME)
- Noncommercial — You may not use this work for commercial purposes including the Internet ad supported websites or any sort of print media.
- Share Alike — If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.
With the understanding that:
- Waiver — Any of the above conditions can be waived if you get permission from the copyright holder (i.e. the Author: Vivek Gite).
- Other Rights — In no way are any of the following rights affected by the license:
- Your fair dealing or fair use rights;
- The author's moral rights;
- Rights other persons may have either in the work itself or in how the work is used, such as publicity or privacy rights.
- Notice — For any reuse or distribution, you must make clear to others the license terms of this work. The best way to do this is with a link to this web page (http://bash.cyberciti.biz/guide/Linux_Shell_Scripting_Tutorial_-_A_Beginner%27s_handbook:About).
- Ver.0.8 - 1998 - First draft with only 8 pages.
- Ver.0.9 - 2000 - Second draft with a few more pages.
- Ver.1.0 - 2002 - Third draft published on freeos.com.
- Ver.1.5r3 - 2004 - Updated version published on freeos.com.
- Ver.2.0.beta - Aug-2009 - Wiki started.
- This document is now in a wiki format.
- All user contributed content licensed under Attribution-Noncommercial-Share Alike 3.0 Unported.
- This web site / wiki ("Site") provides educational learning information on Linux scripting for sys admin work, but you are 100% responsible for what you do or don't do with it.
- The information compiled by Vivek Gite (and its contributors) as well as the links to complimentary material are provided "as is" with no warranty, express or implied, for their accuracy or reliability.
- You use these sites at your own risk, and acknowledge that, while every effort has been made to correct errors before they appear, this site may include certain inaccuracies, errors, or omissions. nixCraft makes no representations as to the suitability, reliability, availability, timeliness, and accuracy of the information on this site for any purpose.
- Using this site (cyberciti.biz) means you accept its terms.
- All trademark within are property of their respective holders.
- The opinions and ideas expressed in this book are solely those of the author, and do not necessarily reflect those of nixCraft consultancy services and/or my current/past employers.
- This book is created and maintained by Vivek Gite - a Sr. UNIX admin. Vivek is specialized in the design of high performance computing (HPC) using Linux, security and optimization for the internet and intranet usage. Vivek has a particular interest in TCP/IP, Anti DDoS, Server side optimization, computer clusters, parallel computing, HPTC and embedded Linux / FreeBSD devices etc. Visit my Linux admin blog for more tutorials, guides and news about FOSS.
- Please give me your feedback. Whatever you see here, is based upon my own hard-earned experience. I have taught myself both through trial and error. Shoot me an email at firstname.lastname@example.org.
- If you see a typo, a spelling mistake, or an error, please edit wiki page. Alternatively, you can tell me about it by sending me an e-mail.
If you found this book useful please send charitable donations ($10 is minimum and recommended) to the following non-profit organization that helps to support, promote, and develop free software: