Linux and Unix Shell Scripting
Date: 13 - 16 October 2025
Timezone: Zurich
Duration: 4 days
Language of instruction: English
The Linux and Unix command line interface provides a very powerful set of applications and programming tools that enable the user to unleash the full potential of Linux or Unix.
The course covers how to create simple yet powerful commands, to use the programming constructs to automate tasks, to simplify the administration of the system and how to create shell scripts or command files. The course looks at using the shell in an efficient manner, and how to write commands and scripts that take a fraction of the time a badly constructed script would take thus freeing up resources and time.
The course is based on the Bourne, Korn or Bash shell and is structured around a textbook with practical exercises.
Course content:
- Review the role of the Kernel and the Shell
- Examine the process life cycle
- Examine in-built shell functions
- Look at file name meta-characters
- Perform I/O redirection
- Create simple scripts
- Run scripts
- Use of #! directive
- Create and use shell variables
- Use of the . construct
- Use of quotes
- Use of regular expressions
- Use of positional parameters
- Examine the exit status of commands
- File manipulation
- Use of the if statement
- Loops using Flow control
- Reading data from standard input. Use of <<
- Perform arithmetic calculations within a script
- Examine the use of inbuilt functions
- Parameter substitution
- Look at Unix tools
- Create command line scripts and menu driven interactive scripts.
- Develop concise, robust and maintainable scripts.
- Handle signals received by a script
Contact: technical.training@cern.ch
Keywords: Linux, Unix
Prerequisites:
- Prior knowledge of Linux or Unix to basic user level.
- Simple use of an editor would be an advantage.
Learning objectives:
Have an understanding of how Shell scripts work and be able to complete complex scripting tasks
Organizer: CERN Technical Training
Eligibility:
- First come first served
Target audience: All users of Linux, as well as anyone who will be using Linux in a development environment or administering a Linux system.
Event types:
- Workshops and courses
Activity log