Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Shell Programming
Rating: 4.5 out of 5(21 ratings)
115 students

Shell Programming

Linux/Unix environment
Created byJyothi Mandala
Last updated 11/2025
English
English [Auto],

What you'll learn

  • Understand the fundamentals of Linux/Unix operating systems — including installation (Ubuntu in VirtualBox)
  • Develop proficiency in command-line utilities and text-processing tools
  • Comprehend the concepts and structure of shell scripting — including shell types, Shebang (#!), variables, command substitution, reading user input
  • Apply control structures and looping mechanisms to create logic-driven, interactive shell programs.
  • Implement arrays and modular scripting practices to store and manipulate collections of data efficiently within shell scripts.
  • Utilize the VIM editor and scripting environment effectively for writing, editing, debugging, and executing shell programs within Linux/Unix.

Course content

1 section • 30 lectures • 9h 55m total length
  • Introduction19:16

    Explore the foundations of shell programming by examining operating systems, the kernel and shell, and learn to use bash on linux with ubuntu, including shell scripting and command-line concepts.

  • INSTALL UBUNTU ON WINDOWS WITH VIRTUALBOX38:50

    Learn to install Oracle VirtualBox, set up a Ubuntu virtual machine from an Ubuntu desktop ISO, configure bidirectional clipboard and drag-and-drop, and complete the Ubuntu installation inside Windows.

  • Linux file system , cd Command28:16

    Learn how linux treats everything as a file, explore normal, directory, and device files, and navigate the linux file system with the cd command across the root directory hierarchy.

  • ls command32:52

    Learn the ls command to list files and master options like -l for details, -a for hidden files, -t for recent, -R for subdirectories, and -h for human readable sizes.

  • echo command16:19

    Explore the echo command in shell programming, covering syntax, basic usage, and options like -e for backslash escapes, \n, \t, \r, and -c to suppress newlines, plus * printing.

  • who, pwd, cat Commands22:40

    Explore shell programming with who, pwd, and cat commands, covering user info, current directory, environment variable pwd, file creation, reading, writing, appending, line numbers, and redirection.

  • date Command24:57

    Learn to use the date command to display and format the system date and time, with -u, -d, -f, -r, -s, and plus-format specifiers.

  • cal Command10:11

    Explore how the cal command displays calendars in the terminal, from the current month to a specific month and year, with options for year, page-by-page, and Julian calendar formats.

  • mkdir and rm Commands21:13

    Learn how mkdir creates directories with options like -p for parent directories, -v for verbose output, and -m to set permissions, while rm deletes files with -i and -r.

  • touch Command15:13

    Explore the touch command in shell programming to create empty files, compare it with cat, and learn options like -c, -r, -t, and -m to manage file times.

  • mv Command14:31

    Rename files or directories using the mv command, which moves the source to the destination, with -i for confirmation, -n to prevent overwriting, and -b for backups with tilde.

  • cp Command12:01

    Learn how the cp command copies files from one location to another, creating backups and handling existing destinations, with options like -i, -b, and -r for directories.

  • ln and chmod Commands19:00

    Learn to use the ln command to create hard and soft links, and apply chmod to set owner, group, and others permissions (read, write, execute) on files.

  • sort Command14:32

    Master the sort command to display file contents in sorted order without altering the files, using ASCII by default, with options -o, -r, -n, and -k for column sorting.

  • grep Command, egrep Command, fgrep Command29:31

    Explore how grep, egrep, and fgrep search files for patterns, displaying matching lines or counts, with multi-pattern options, case insensitivity, and anchors for starts and ends.

  • Types of Shells in Linux​22:00

    Learn the different types of shells in Linux, including Bourne, Bash, Korn, C, T, and Z shells, and how to check the default shell and switch between them.

  • How to write and run Shell Scripts?​24:38

    Learn to write and run shell scripts by creating a .sh file in a text editor, making it executable with chmod, and running with ./filename.sh; scripts are interpreted, not compiled.

  • Importance of Shebang in Linux9:49

    Explain how the shebang, a combination of hash and exclamatory symbols on the first line, specifies the shell interpreter such as bash or sh for script execution.

  • Shell Variables15:19

    Explore system defined and user defined variables in shell scripting, assign values with name=value, access with $name or ${name}, and concatenate strings using variable substitution and echo.

  • Command Substitution9:51

    Learn to perform command substitution in shell scripts by executing a command and substituting its output with back quotes or the dollar-parentheses form.

  • read Command17:18

    Master reading dynamic input in shell scripts with the read command, storing values in variables, using -p for prompts and -s for silent password input, and displaying results.

  • Command Line Arguments​14:34

    Learn how to use command line arguments in shell programming by passing values to scripts, reading them with $1/$2, and understanding $#, $@ vs $*, and script name with $0.

  • expr Command14:05

    Learn how to perform arithmetic in shell scripts using the expr command, covering arithmetic, relational, boolean, bitwise, and string operators, with three implementation approaches.

  • simple if || if-else || Nested if || elif​34:45

    Explore shell scripting control statements, including if, else, nested if, and elif, to control flow with comparisons, selection and looping concepts, using proper brackets and operators.

  • case - Control Statement​16:46

    Learn how the shell case statement replaces long if-else chains with clean pattern driven options, including default handling, esac, and grouping using regular expressions for digits, letters, and alphanumeric inputs.

  • while and until - Control Statements​13:42

    Explore while and until control statements in shell programming, learn their syntax with do and done, compare their behavior, and practice looping from one to n.

  • for and select - Control Statements​15:07

    Learn for and select control statements in shell programming, including for loops with fixed values and increments, command-based loops, a c-style for syntax, and menu-driven select constructs.

  • break and continue - Control Statements​11:17

    Learn to use break and continue transfer statements to control loop flow in shell programming, exiting loops or skipping iterations to alter execution path.

  • Array Variables​36:42

    Explore one-dimensional arrays in bash: declare, initialize, access with indexing starting at zero, and print elements using echo, for, and while loops, including random indexing and runtime input.

  • VIM Editor Basics on Linux/Unix:Installation to Running Shell Scripts20:28

    Learn to install vim on ubuntu, switch between insert and command modes, create and edit shell scripts, save, execute with permissions, and add functions in shell scripts.

Requirements

  • Computer Fundamentals and Operating Systems Concepts
  • Programming Logic and Problem Solving

Description


This course offers a complete introduction to Shell Programming in Linux/Unix environments, designed to help learners gain both theoretical understanding and practical skills in command-line scripting. Beginning with the installation of Ubuntu on VirtualBox, it introduces the Linux file system, directory structure, and a wide range of essential commands such as ls, pwd, cat, date, mkdir, rm, and chmod.                                                                     

As the course progresses, learners explore text-processing utilities like grep, sort, and awk, along with powerful scripting features such as variables, command substitution, and user input handling. Detailed sessions on control statements (if, case, for, while, until, break, continue) enable learners to design structured and efficient shell programs. Advanced topics such as array variables and VIM editor usage help build proficiency in managing complex scripts and workflows.

Through hands-on demonstrations and examples, students will learn how to automate repetitive tasks, manage files, and streamline system operations effectively. By the end of the course, learners will have the ability to write, test, and debug shell scripts confidently — equipping them with essential skills for careers in Linux system administration, DevOps, and automation.

Key Words: Shell Programming: Linux Commands:  text-processing utilities manage files, and streamline system operations effectively: Linux system administration, DevOps, and automation.

Who this course is for:

  • Undergraduate and Postgraduate Students
  • Anyone Curious About Linux