Course : Shell scripting on Unix/Linux, advanced

Practical course - 2d - 14h00 - Ref. ELP
Price : 1370 € E.T.

Shell scripting on Unix/Linux, advanced




Optimize task management under Linux with this advanced Shell course. You'll learn about variables, I/O management, string manipulation and library creation.


INTER
IN-HOUSE
CUSTOM

In person or remote class
Available in English on request

Ref. ELP
  2d - 14h00
1370 € E.T.




Optimize task management under Linux with this advanced Shell course. You'll learn about variables, I/O management, string manipulation and library creation.


Teaching objectives
At the end of the training, the participant will be able to:
Master extended shell I/O
Handling strings
Reinforce a shell script using getopts
Create a library of simple functions
Analyzing a shell script

Intended audience
Developers, Unix/Linux administrators.

Prerequisites
Good shell knowledge or equivalent of "Shell scripting on Unix/Linux" (ref. SHL). Basic knowledge of a Linux/Unix system. Experience required.

Course schedule

1
Introduction ksh

  • Fundamentals: fork/wait and exec/exit.
  • The shell, scripts and strings.

2
Korn shell specificity

  • Initializing ksh, the command line and vi and emacs modes.
  • Function management in ksh.
  • Signal management in ksh.
  • Ksh builtins.
  • traps", exit and debug, debugging a ksh script.
  • KSH an Object language: Setter and Getters for shell variables.
Hands-on work
Adapt your environment for ksh, .profile, command editing mode. Use DEBUG trap and setter/getter to analyze a script.

3
Variables, arithmetic and logical expressions

  • Differences from Bourne Shell and Bourne again shell.
  • Variable types.
  • Associative tables.
  • Compound, aggregate variable.
  • Binary variables.
Hands-on work
Using an associative array (Key/Value) and variable aggregates to manage a ksh database.

4
Extended inputs/outputs

  • Co-processes.
  • The builtin exec.
  • Process substitution.
  • Read and write binary in shell.
Hands-on work
Write a shell daemon (exec), use coprocess to create a random number server, write a binary analysis program.

5
Character strings

  • Parameter substitution and expansion.
  • Ksh getopts to manage command parameters.
  • ksh extensions for printf and read, use of select to manage a man-machine interface.
Hands-on work
Strengthen a shell script using getopts, parameter substitution to manage extensions and directories. Use select, read and printf in an interactive shell.

6
Increase korn shell capabilities

  • Functions, specificity of varname functions.
  • Function libraries.
  • Builtins, writing a builtin for KSH, integrating a builtin, builtin libraries.
Hands-on work
Create a library of simple functions, basename, dirname... Add a builtin to ksh to read a timer stamp accurate to the nanosecond.


Customer reviews
4,2 / 5
Customer reviews are based on end-of-course evaluations. The score is calculated from all evaluations within the past year. Only reviews with a textual comment are displayed.
PHILIPPE F.
27/11/25
5 / 5

Trainer with excellent Linux Shell experience
TOLGUENEC FÉLIX L.
13/10/25
4 / 5

Interesting course but not focused enough for me.
ALAIN M.
13/10/25
4 / 5

Improvement needed: many of the exercises require a great deal of effort (thought, time spent) in designing software (algorithms) and entering command lines, which are not essential for acquiring new knowledge => suggest practising using very simple cases that can be easily tested/validated and use the correction of these complex exercises as examples of other uses of the concepts taught.



Publication date : 02/20/2024


Dates and locations
Select your location or opt for the remote class then choose your date.
Remote class

Last places available
Guaranteed date, in person or remotely
Guaranteed session

REMOTE CLASS
2026 : 15 June, 28 Sep., 23 Nov.

PARIS LA DÉFENSE
2026 : 15 June, 28 Sep., 23 Nov.