Module Title: dgt_bash03 – Command Execution
Description:
Welcome to “dgt_bash03 – Command Execution,” a comprehensive module designed for both beginners and intermediate users looking to master the art of command execution in Bash. This module will delve into the essentials of executing commands efficiently, with a special focus on output redirection techniques—covering standard output stdout, standard error stderr, and standard input stdin.
module Objectives:
-
Understand Basic Command Execution: Learn how to run basic shell commands and explore various options available in Bash.
-
Explore Output Redirection Techniques: Gain proficiency in redirecting the output of commands. You will learn how to manipulate stdout, stderr, and stdin effectively.
-
Hands-On Examples: Engage with practical examples illustrating command execution and output redirection scenarios to reinforce theoretical concepts.
Key Topics:
- Executing Commands in Bash:
- Introduction to Bash scripting
- Running simple commands and scripts
-
Command-line arguments
-
Understanding Streams:
- Standard Output stdout
- Standard Error stderr
-
Standard Input stdin
-
Output Redirection Basics:
- Redirecting stdout to files using
>
- Appending output with
>>
-
Redirecting stderr separately using
2>
-
Advanced Redirection Techniques:
- Combining stdout and stderr redirection
- Using pipes
|
for chaining commands -
Leveraging process substitution
-
Practical Examples and Use Cases:
- Real-world scenarios demonstrating command execution
- Exercises focusing on redirecting outputs effectively
Who Should Enroll:
This module is ideal for system administrators, DevOps engineers, software developers, and anyone interested in expanding their knowledge of Bash scripting with a focus on executing commands and managing output streams efficiently.
By the end of this module, you will be equipped with the skills necessary to execute Bash commands confidently while effectively managing outputs to suit various requirements. Join us and take your Bash command execution abilities to the next level!
The students can push their exercises to the Academy DevOps & SRE GIT project. For this module, create a folder with your username as its name in the following subfolder: https://github.com/Garanti-Del-Talento/gdt_academy