Book description
Introduction to Unix and Shell Programming is designed to be an introductory first-level book for a course on Unix. Organised into twelve simple chapters, the book guides the students from the basic introduction to the Unix operating system and extTable of contents
- Cover
- Title Page
- Contents
- Dedication
- Preface
- 1. Introduction to Unix
-
2. Files and File Organization
- 2.1. Unix Files
- 2.2. Categories of Files
- 2.3. Hidden Files—Dot Files
- 2.4. The File System—Organizing the Unix Files
- 2.5. Path Names—Reaching a Required File
- 2.6. The Home Directory
- 2.7. Directory Commands
- 2.8. The Dot (.) and Double Dot (. .) File Names
- 2.9. File Related Commands
- 2.10. Wild Cards—Filename Generation
- 2.11. Displaying the Contents of a File
- 2.12. Printing of Files
- 2.13. Comparing Files
- Review Questions and Exercises
-
3. File Attributes and Permissions
- 3.1. Ownership of Files
- 3.2. File Attributes
- 3.3. The is Command—Revisited
- 3.4. The file Command—Knowing the File Type
- 3.5. The chmod Command—Changing File Permissions
- 3.6. The chown Command—Changing the Owner of a File
- 3.7. The chgrp Command—Changing the group of a File
- 3.8. Times Associated with a File
- 3.9. The umask Command—Default File Permissions
- Review Questions and Exercises
-
4. Standard I/O, Redirection Pipes and Filters
- 4.1. Standard I/O
- 4.2. Redirection
- 4.3. Pipe and Pipeline—Connecting Commands
- 4.4. Mixing Inputs from Standard Input and a File
- 4.5. Filter
- 4.6. The tee Command
- 4.7. Terminal (/dev/tty) and Trash (/dev/null) Files
- 4.8. A Sample Database File
- 4.9. Handling Columns and Fields
- 4.10. The sort Command
- 4.11. The uniq Command
- 4.12. The tr Command
- Review Questions and Exercises
-
5. The vi Editor
- 5.1. The vi Editor
- 5.2. Editing with vi
- 5.3. Moving the Cursor
- 5.4. Editing
- 5.5. Copying and Moving Text
- 5.6. Pattern Searching
- 5.7. Repeating the Last Editor Command
- 5.8. Undoing Commands
- 5.9. Joining Lines
- 5.10. Writing Selected Lines onto a Separate File
- 5.11. Using the Shell from vi
- 5.12. Configuring the vi Environment
- Review Questions and Exercises
- 6. Regular Expressions—grep Family of Commands and the sed
-
7. The Process
- 7.1. The Meaning
- 7.2. Parent and Child Processes
- 7.3. Types of Processes
- 7.4. More about Foreground and Background Processes
- 7.5. Internal and External Commands
- 7.6. The ps Command—Knowing Process Attributes
- 7.7. Process Creation
- 7.8. The nohup Command
- 7.9. The nice Command
- 7.10. The time Command
- 7.11. Signals
- 7.12. The trap Command
- 7.13. The stty Command
- 7.14. The kill Command
- 7.15. The wait Command
- 7.16. Job Control
- 7.17. Command History
- 7.18. Scheduling Jobs' Execution
- Review Questions and Exercises
-
8. Shell Programming
- 8.1. Shell Variables
- 8.2. The export Command
- 8.3. The .profile File—A Script Run during Starting
- 8.4. The First Shell Script
- 8.5. The read Command
- 8.6. Positional Parameters
- 8.7. The $? Variable—Knowing the Exit Status
- 8.8. More about the set Command
- 8.9. The exit Command
- 8.10. Branching Control Structures
- 8.11. Loop-Control Structures
- 8.12. The continue and break Statements
- 8.13. The expr Command: Performing Integer Arithmetic
- 8.14. Real Arithmetic in Shell Programs
- 8.15. The here Document (<<)
- 8.16. The sleep Command
- 8.17. Debugging Scripts
- 8.18. The script Command
- 8.19. The eval Command
- 8.20. The exec Command
- 8.21. More Scripts
- Review Questions and Exercises
-
9. AWK
- 9.1. Syntax of an awk Program Statement
- 9.2. Structure of an awk Script
- 9.3. Operational Mechanism of awk
- 9.4. Variables
- 9.5. Records, Fields and Special Variables
- 9.6. Addressing: Line and Context Addressing
- 9.7. Patterns
- 9.8. Operators
- 9.9. Sample Input Files
- 9.10. Simple awk Programs
- 9.11. awk Control Structures
- 9.12. Functions in awk
- 9.13. Script on a File—The First Complete Script
- 9.14. Executing awk Scripts with the Shell
- 9.15. Arrays
- 9.16. Salary-Computing Script
- Review Questions and Exercises
- 10. Basic Communication Tools
-
11. Introduction to Perl
- 11.1. Structure of a Perl Script
- 11.2. Running a Perl Script
- 11.3. Perl Data
- 11.4. Print Functions
- 11.5. Some String Operators
- 11.6. The Current Line and the Current Line Number
- 11.7. Lists and Arrays in Perl
- 11.8. List Operators
- 11.9. Handling Files
- 11.10. The chop() and chomp() Functions
- 11.11. Associative Arrays (Hashes)
- 11.12. Contexts
- 11.13. Decision-Making and Loop-Control Structures
- 11.14. Regular Expressions
- 11.15. The Match Operator (m/ /)
- 11.16. The Substitute Operator (s/ / /)
- 11.17. Multiple search Patterns
- 11.18. Anchors
- 11.19. Sub-Routines
- 11.20. Example Scripts
- Review Questions and Exercises
- 12. Introduction to System Administration
- Acknowledgements
- Copyright Page
Product information
- Title: Introduction to Unix and Shell Programming
- Author(s):
- Release date: May 2005
- Publisher(s): Pearson Education India
- ISBN: 9788177587456
You might also like
book
Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow, 2nd Edition
Through a series of recent breakthroughs, deep learning has boosted the entire field of machine learning. …
book
Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow, 3rd Edition
Through a recent series of breakthroughs, deep learning has boosted the entire field of machine learning. …
book
Official Google Cloud Certified Associate Cloud Engineer Study Guide
The Only Official Google Cloud Study Guide The Official Google Cloud Certified Associate Cloud Engineer Study …
book
Python Crash Course, 2nd Edition
This is the second edition of the best selling Python book in the world. Python Crash …