Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Linux command line and Bash Shell Scripting
Rating: 4.3 out of 5(1,402 ratings)
28,819 students

Linux command line and Bash Shell Scripting

Lots of free previews of instructions to decide and judge the course. Best course on Linux command line and scripting.
Created byShakil khan
Last updated 7/2022
English
English [Auto],

What you'll learn

  • Learn many Linux commands which can only be learnt over a period of time without guidance.
  • Automate using shell script and shell commands
  • Write Bash shell script
  • Very detailed and in depth understanding of shell commands

Course content

1 section • 56 lectures • 9h 51m total length
  • Introductory Course Contents.5:42

    Zip file has the entire resource of this course including scripts, ppt and doc file so that its easy for the students to refer to the material.

  • Iterm2, diskutil, hostname,uname16:09

    Explore how to run bash scripts on macOS, compare terminal options like iTerm2 and the default Terminal, and understand cross-platform nuances of hostname, uname, and diskutil in macOS and Linux.

  • Introduction to Shell Scripts13:23

    Definition of Shell, different types of Shell, definition of kernel and passwd configuration files.

  • Shell and env variables13:42

    Explore environment variables in Linux and Mac bash environments, learn how to define, export, and unset variables, and manage PATH and library paths while spawning child shells.

  • File System and directory hierarchy7:19

    Explore the Linux file system hierarchy, starting at the root, and examine common directories like /bin, /usr, /lib, /home, and /proc, with notes on mounting and Linux-versus-Unix differences.

  • Multi-Tasking and Multi-User.5:06

    Explain the concept of Multi-tasking, Multi-user and SMP system.

  • ls, cd, man, exit commands18:43

    Learn how the ls command lists files and directories, uses -l for permissions and sizes, reveals hidden files with -a, navigate with cd, view manuals with man, and exit.

  • rmdir, mkdir, rm, history, cat13:36

    Explore essential Linux commands such as cat, rm, and history. Learn to view, create, and delete files and directories, use redirection and pipes, and perform recursive deletions.

  • cp, mv, inode, clear11:57

    Explore copying with cp, moving and renaming with mv, and how source and destination relate to file blocks and inodes in Linux, with practical command examples.

  • who, whoami, tty, which, locate, pwd10:09

    Identify who is logged in with the who command and verify your user with whoami. Use which and locate to find command paths, and navigate with cd and ls.

  • How can you get the run level of system using who command.
  • calendar(cal), date, time commands and their options14:16

    Explore the Linux calendar and date commands using cal to view calendars. Use date to format or set times, including time zones and custom formats like %m-%d-%Y.

  • vi editor and different commands Part117:16

    Master vi and vim basics: switch between insert and normal modes, edit with i and escape, delete with dd or x, copy with yy, join lines with J, search /.

  • vi editor Part 27:30

    Learn vi basics: save with :w, quit with :q or :q!, save and quit with :wq; yank and paste; manage tabs and splits with :vsp and :sp; navigate with hjkl.

  • chmod and user permissions12:02

    Master linux file permissions with chmod, setting read, write, and execute for user, group, and others. Explore octal and symbolic modes, including sticky bits and setuid/setgid.

  • chown, chmod, getent, chgrp8:19

    Explore how to use chown, chgrp, and chmod to manage file ownership and permissions, including recursive changes on directories, and retrieve system users and groups with getent.

  • Background Jobs and no hangup8:03

    Learn to manage background and foreground jobs in bash, using jobs and %1, bring tasks to the foreground, stop with ctrl-c, and redirect output.

  • sort and Uniq command6:42

    Sort text and numbers with the sort command, explore ASCII and numeric order (-n) with optional -r, and remove duplicates by piping to uniq, using -u for unique lines.

  • Top and PS command6:55

    Learn to use top and ps to monitor system status, processes, and resource usage, and to harvest output in batch mode for scripting and logging.

  • How to get thread ID of a process
  • Pipes And Redirection13:46

    Explore file descriptors in Linux and Unix, learn how standard input, output, and error streams redirection work, including creating, overwriting, appending to files, and using dev/null.

  • Pipes and Redirection Part 211:49

    Examine pipes and redirection in bash, including file descriptor basics, redirecting output to files, appending, and chaining commands with pipes using tools like less, find, and wc.

  • Wild Cards9:52

    Explore wild cards in the Linux command line, using ?, *, and bracket ranges to match characters and file patterns; escape spaces with backslashes and explore grep and regex.

  • Find Part 18:04

    Find command and options like Max depth, iname etc

  • Find Part 211:00

    Find Command to find directory or regular file "and or" operations.

  • Find part 39:27

    Find command to find users permissions and access.

  • Find Part 410:59

    Find files of certain sizes and operations like deletion or listing on them using xargs.

  • grep command and common usage part-16:52

    Explanation of grep and some of its common usage

  • grep command part-212:10

    Grep command and common usage.

  • grep command part-310:49

    Grep command and common usage.

  • grep command part-49:47

    Grep command and common usage.

  • Shell Script Introduction and different components and debugging a script10:17

    Shell scripts are interpreted and use hash comments. Learn debugging with bash -x and syntax checking with bash -n, while handling script name $0 and arguments $1, $2.

  • Functions and Command Line argument Processing13:04

    Demonstration of function and command line arguments.

  • While Loop8:50

    Demonstration of while loop and its different variants.

  • Until Loop4:20

    Demonstrate the bash until loop syntax.

  • For Loop and various syntax of for loop8:27

    Various Types of for loop in Bash Shell script

  • If condition11:10

    If statement demonstration

  • Test conditions for file type and strings18:14

    Test the if conditions with respect to file like block, or character or regular file. There are other use cases like checking for empty string etc.

  • Read User input and processing4:59

    Reading user input from stdin using read command in Script

  • Case statement, AKA switch4:22

    Case statement demonstration in Bash shell

  • File Handling and operations12:52

    Various ways to read, open, manipulate files.

  • Exit Status of a Shell10:12

    Demonstrate exit status from a shell

  • Random Number and its use case5:11

    Random number generation in certain range.

  • Arrays and iterating over elements in different ways19:09

    Different ways to access and create arrays in Bash Shell

  • Here Document, Multi line comments, Ftp scripts11:48

    Demonstrate Multi-line comment and ftp automated script using here document in shell script.

  • Trap and signals part-111:07

    Handling signals and how to trap and process signals

  • Trap and signals part-213:22

    Handling signals and how to trap and process signals

  • Trap and signals part-36:01

    Some more details about traps and signal handler.

  • Trap and signals part-48:51

    Signal handler and inheritance by child process

  • Trap and signals part-59:41

    Explore trap and signal handling in bash, restoring signals after cleanup, customizing sigint behavior on control-C, and implementing time-based double-press logic.

  • Installing Ubuntu in virtual Machine15:31

    Install Ubuntu in a virtual machine on Mac using a 64-bit ISO, configure memory and disk, and complete the setup to boot into Unity.

  • dd and od command and how to copy file using dd11:56

    Learn to use dd and od to copy files, create sparse or filled files from /dev/zero, and inspect binary data with hex output, while heeding data loss warnings.

  • df, du, lsof, netstat19:42

    Discover disk usage with df and du, using human-readable formats and awk. Inspect open files and network activity with lsof and netstat on Mac and Linux.

  • dmidecode, lscpu, lspci, SMBIOS, DMI7:02

    Explore Linux hardware inspection using less cpu, less usb, and less pci to view cpu, usb, and pci details; retrieve bios, dmi, and smbios data with dma decode on VMware.

  • Creating a partition and mounting the file system9:16

    Attach a new disk, identify the device, and partition it with a partitioning tool. Format the partition with a filesystem and mount it to a directory.

  • nmap for network and port scanning8:16

    Use nmap for network and port scanning, revealing open ports and services as a security scanner. Install and run it on macOS or Linux, tuning timing and addressing firewall blocks.

  • ssh, scp and sshpass9:40

    Learn how to securely connect to a remote Linux machine with ssh, copy files with scp, and use sshpass and options like port, username, and X11 forwarding to streamline logins.

  • tcpdump and pcap6:23

    Learn to use tcpdump to capture traffic across an interface, save to a pcap file, and inspect icmp and port traffic, with verbose options for deeper analysis.

Requirements

  • This course caters to beginner, intermediate and advanced level. Student needs to be familiar with the concept of Computer and Operating system.
  • Any prior working knowledge of programming language would help, however it is not at all necessary.

Description

Description:

This course offers a detailed, hands-on approach to making students familiar with the concepts of Bash programming. It is designed to groom students across various areas including commands, analysis, and debugging — all with the help of live examples and practical exercises. All examples are downloadable.

What You'll Learn:

Solve common interview questions with confidence using shell scripting knowledge.

Automate the boring stuff with shell scripts.

Build expertise in the Linux command line.

Understand system internals and the boot process.

Learn how to use the command line effectively.

Be able to write your own shell scripts from scratch.

Automate tasks using shell scripts.

Make decisions by using if-else statements.

Make decisions based on strings, variables, or files.

Use arithmetic expressions in your scripts.

Loop through files and folders using for and while loops.

Use functions and learn different ways of writing them.

Take a practical approach to shell scripting to solve real-world problems.

Understand core shell scripting concepts thoroughly.

Understand Unix filters like awk, cut, and sed.

Automate repetitive tasks across different admin areas — including Linux Admins, Middleware Admins, Database Admins, DevOps Admins, and AWS Cloud Admins.

Write basic to advanced-level shell scripts.

Write shell scripts that can be used on Linux, Mac, and Unix operating systems.

Automate tasks using shell scripts to save time and reduce manual effort.

Create fairly complex scripts that take advantage of advanced Bash shell features.

Who this course is for:

  • Anyone one who is interested in learning Linux/Unix, Shell programming and linux commands is a gateway to becoming successful Unix/Linux Programmer.