Linux for Programmers With Shell Scripting
Revision: TE1409_20111005
- Course Length:
- 2 Days
- Course Description:
- This course is an introduction to writing Linux shell scripts. Topics include the use of pipes and filters, shell variables, start-up scripts, looping and decision constructs, and script exit status. Hands-on exercises include writing scripts to schedule recurring tasks, automate system maintenance, create archives and backups, connect to remote machines, and send and retrieve files across the network. Students are also introduced to software tools available under Linux.
- Who Should Attend:
- This course is intended for system and application programmers, testers, configuration managers, and future system administrators.
- Benefits of Attendance:
-
Upon completion of this course, students will be able to:
- Use the rich set of common Linux filters.
- Write scripts to control the bash shell.
- Modify bash startup files.
- Use networking utilities including ssh, scp, and ftp.
- Use software tools such as ar and make.
- Use administrative utilities such as tar, crontab, and yum.
- Prerequisites:
- Students should be comfortable using Linux and be able to edit text files using a text editor. Prior experience using a programming language is recommended.
- Course Outline:
-
- Chapter 1: Linux Filters
- Perspective
- grep
- sort
- head and tail
- tr
- cut
- od
- paste
- split
- uniq
- sed
- gawk
- more and less
- tee
- lp
- Chapter 2: Shell Programming
- Shells
- Scripting Rationale
- Scripting Prerequisites
- Creating a bash Script
- bash Startup Scripts
- A Script’s Environment
- Exporting Variables
- Exit Status
- Programming the Shell
- Parameter Passing
- Operators
- Decision Making - if
- Complex Decisions
- Arithmetic
- Looping Constructs - for
- Input and Output - echo and read
- Looping Constructs - while
- Functions
- Interrupts
- Chapter 3: Networking Tools
- TCP/IP
- IP Addresses
- Network Configuration Files
- Client / Server Computing
- telnet
- ping
- ftp
- ssh
- scp
- Chapter 4: Software Tools
- Building a Linux Utility
- Creating a Utility
- The C Compiler
- Libraries
- Static vs. Shared Libraries
- make
- Data Compression
- Chapter 5: Administrative Tools
- Setting the Date
- Adding Users
- Ownerships
- sudo
- df
- du
- tar
- at
- crontab
- Managing Software
- rpm
- yum
- Appendix A: The Visual (vi) Editor
- vi Modes
- Starting and Stopping vi
- Last Line Mode Commands
- Cursor Movement Commands
- Delete and Search Commands
- Chapter 1: Linux Filters


















