Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Bash Shell scripting and automation
Rating: 4.0 out of 5(612 ratings)
17,153 students

Bash Shell scripting and automation

Linux command line and Bash Shell scripting
Created byShakil khan
Last updated 1/2018
English
English [Auto],

What you'll learn

  • Learn Linux commands and combine with shell script structural feature to create powerful commands and script.
  • Automate stuff using shell script
  • Write complex Bash shell script and save time
  • Very detail and in depth understanding of shell commands and scripting

Course content

1 section56 lectures9h 58m total length
  • Introduction To Bash Shell13:23

    Zip file contains entire shell script, power point presentation and doc file used in this course as it would be helpful for the students to refer to them from beginning.

  • Introduction to Shell Scripts13:23
  • iterm, Terminal, hostname, uname16:09
  • File System and Directory Hierarchy7:19
  • Multi Tasking and Multi User5:06
  • Shell and environment Path13:42
  • Some common commands like ls,cd,man,exit18:43

    Discover how to list files and directories with ls, use -l and -a for details and hidden items, understand permissions and links, and navigate with tab completion and man pages.

  • Some more common Linux commands13:36
  • cp, mv, clear, inode11:57
  • who, whoami,tty,which, locate,pwd10:09

    Explore Unix command line basics by using who, whoami, tty, which, locate, and pwd to identify logged-in users, current identity, terminal context, and file locations through practical examples.

  • calendar, date, time14:16

    Learn how the cal and date commands in linux display calendars, dates, and times. Format outputs with specifiers, view utc or local times, and set the system date with privileges.

  • vi editor part 117:16

    Install vim, then master vi editor basics: switch between command and insert modes, delete and yank lines, join lines, navigate with line numbers, and search and replace.

  • vi editor part27:30
  • chmod and user permissions12:02

    Explore chmod and file permissions on Linux and Unix, mastering user, group, and others; interpret read, write, execute bits and octal values to add or remove access securely.

  • chown, chmod, getent, chgrp8:19
  • Background Jobs and no hangup8:03
  • Sort and Uniq Command6:42

    This lecture shows how to use sort for text and numeric order, demonstrates -n and -r, and deduplicate with -u or by piping to uniq, noting ASCII ordering.

  • Top and ps command6:55
  • Pipes and redirection Part 113:46
  • Pipes and redirection Part 211:49
  • Wild Cards9:52

    Explore wild cards in bash scripting, using question marks, stars, and bracket ranges to match files and patterns, with backslash escapes for spaces and special characters.

  • Find Part 18:04

    Learn to use the find command to locate files and folders with -name and case-insensitive -iname, explore wildcards, depth limits with -maxdepth, and negation with -not -name.

  • Find Part 211:00

    Master using the find command in bash scripting to locate files by name and extension, limit search depth with -maxdepth, and include hidden files, while distinguishing files from directories.

  • Find Part 39:27

    Explore using the find command to locate files by permissions, including regular files, sticky bits, and ownership, and learn why setting 777 can be risky.

  • Find Part 410:59
  • grep command and common usage part-16:52
  • grep Part 212:10
  • Grep part 310:49
  • Grep part49:47
  • Shell script's different component10:17
  • Functions and command line processing13:04

    Master bash scripting basics by processing command line arguments with $#, $0, and $1, and by defining and calling shell functions with positional parameters.

  • While Loop8:50

    Learn to use the bash while loop to run commands while a condition is true, using [ condition ]; do ...; done, with examples of a counter and sleep.

  • Until loop4:20

    Understand the bash until loop: it runs while the condition is false and exits when it becomes true, illustrated with examples using false, sleep, and a count variable.

  • For loop and its various syntax8:27
  • If conditional statement11:10
  • Test Conditions for file type and strings18:14
  • Read user input and processing4:59
  • Case statement AKA switch4:22
  • File Handling and processing12:52
  • Exit Status of Shell10:12
  • Random number and its use case5:11
  • Arrays and Iterating over elements in different ways19:09
  • Here Documents and Multi line comments, FTP scripts11:48
  • Trap and signals part-111:07

    Explore trap and signal handlers in Linux, showing how signals enable interprocess communication, how kill and trap differ, and how to trap SIGINT (Ctrl-C) to prevent termination.

  • Trap and signals part-213:22
  • Trap and signals part-36:01
  • Trap and signals part-48:51

    Explore trap and signal handling in bash scripts, including exit, interrupt, and hangup signals, and observe how sleep and child processes influence cleanup and behavior across Linux and Unix variants.

  • Trap and signals part-59:41
  • Ubuntu Installation in virtual Machine15:31

    learn to install ubuntu in a virtual machine on a mac, including creating a vm, allocating memory and storage, and booting from a disk image.

  • dd and od command for hex representation and using dd to copy file11:56

    Learn how to use dd to copy data, create sparse files, test disk behavior with /dev/zero and block size and count, and inspect hex output with od.

  • df, du, lsof netstat19:42
  • dmidecode, lcpu, lspci, lsusb and SMBIOS7:02
  • Partition, format and mounting a fresh disk9:16

    Practice partitioning, formatting, and mounting a fresh disk by attaching a new disk to a test machine, listing devices, creating a partition, selecting a file system, and mounting it.

  • nmap and port scanning8:16

    Explore nmap as a scanner for port scanning, discovering open ports and services, install and run scans on macOS, Linux, and Windows, and tune timing to balance speed and accuracy.

  • ssh, scp, sshpass9:40
  • tcpdump and how to create pcap file for network packet capture.6:23

Requirements

  • Students should have basic knowledge of computers and some working principal of OS would be beficial
  • Knowledge of Programming language would be helpful in understanding the shell script construct however its not necessary

Description

Learn the complete set of linux and bash commands.
Learn how to automate things in Linux
Learn how to program in Bash Shell and writing professional water tight scripts.
Learn an exhaustive details about grep, fgrep, egrep etc and its various use case.
Learn and understand exec and shell redirection and various use case.
Learn how to leverage pipes and redirections to fit your custom needs.
Learn the construct of shell scripts like array, exit status, various conditional statement, switch case, test expression, string handling, command line arguments.

Detailed description of how shell interacts with kernel and whats is use case.learn exhaustive details on find command and various variance like finding executable file, zero size file, file of certain size range, file in certain date range etc.

Understand in great details of how to handle pipes and signal for a professional scripting scripting practice.

Learn how to debug Shell scripts in practicality and how to be a champ in Shell script writing.

This course goes in great depth of the internals of various commands so as to understand their working principal which helps in making the base of shell scripting knowledge strong and acts as a great binder to remember various stuffs.

You will also learn about Unix/Linux File and directory hierarchy and various ways permission and ownership of files and directory can be changed.

Who this course is for:

  • Anyone who is interested in learning Linux/Unix, Shell Programming and Linux Command lines