
Explore what a shell and bash are and create your first hello world script to automate tasks, using the interpreter line and running it with ./.
Install Visual Studio Code from Ubuntu Software, then open and use it to write a simple bash script with a shebang, grant execute permission, and run it.
Learn about variables in bash scripting, including user defined and environment variables, how to name and print them with echo, and the basic rules for spaces and scope.
Learn to read user input in shell scripting using the read command, including interactive prompts with read -p, storing values in variables, and hiding input with read -s for passwords.
master command substitution in linux shell scripting by assigning commands to variables, using backticks or the dollar-parenthesis syntax, and displaying results with echo, including pwd and creating files.
Learn how to pass arguments to a bash script using positional parameters like $1 and $2, and the argument list with $@, enabling flexible command-line scripting.
Create a shell script that reads a user input for a server, pings it with a three count and a five second timeout, and sets execute permission to run.
Learn to connect to a remote machine via ssh with a bash script, prompting for username and IP or accepting parameters, and verify the session with whoami.
Learn to use bash operators, including arithmetic, relational, and boolean, in scripts. Practice increment, decrement, modulus, and if-else logic with N1 and N2.
Learn to use if, elif, and else in bash scripts, with examples showing a equal to ten and voting eligibility by age to print appropriate messages.
Explore the case statement in shell scripting through a grading system example, mapping A, B, C, and default to score ranges using the in keyword and esac.
Learn how arrays store multiple values in a single variable and how to initialize them with parentheses. Access elements via zero-based indexing and print all elements with the asterisk syntax.
Master the for loop in shell scripting by understanding its syntax—initialization, condition, and increment—then apply it to print array elements across languages like Python, C++, Java, and C.
Explore the while loop in shell scripting, comparing it to the for loop, with syntax, condition-based execution, and examples that print a name and access array elements.
Explore the until loop in shell scripting, which runs while the condition is false and exits when it becomes true, the reverse of the while loop.
Learn how break and continue control loops in linux shell scripting, using for and while loops with if conditions to break or skip iterations, demonstrated with practical examples.
Automates directory and file creation with a for loop in a shell script, using mkdir and touch, reading user input, and naming directories with an index variable.
Automate user creation with a for loop that prompts for username and password based on a choice, and use sudo useradd with /bin/bash to add accounts.
Learn how to use the test command in bash to evaluate expressions and conditions, including string, numeric, and file checks, with options like -n, -z, -s, and directory tests.
Explore Linux shell scripting functions: define and call reusable blocks, create parameterized functions with $1 and $2, return values with return and capture $? for use in scripts.
Shows how to define a function inside another in shell scripting and call nested functions, using parameterized sum and subtraction to demonstrate the flow and outputs.
Define local variables inside a function and global variables outside, highlighting their scope in shell scripting. Demonstrate that global variables are accessible from anywhere, while locals stay within the function.
Learn to automate user deletion with a bash script that uses functions and global/local variables, prompting for a password and deleting the specified user with sudo.
Create a file integrity checker script using md5 hashes to generate and compare current and previous values, saving to an md5 file and reporting changes.
Create a simple shell script named 24_clone_repo.sh that reads a repository link from the user and uses git clone to clone a GitHub repository into a new folder.
Learn to automate network mapping with Nmap in a bash script that takes a hostname or IP, performs normal, tcp, and udp port scans, and validates input.
Learn the basics of the vi editor for editing files on Linux servers with no GUI, including SSH access and command-line navigation.
Open or create files with the vi editor, switch between command mode and insert mode, and perform navigation, deleting lines, editing, undo, redo, saving, and quitting.
Learn top commands in vi for saving, quitting, and duplicating files, including wq to save and quit, w to save, q to quit, and q! to exit without saving.
Use I to start at the start of line. Use A to end line; small a inserts after the cursor; O and capital O add lines after and before.
Learn essential navigational commands in vi: press shift+g to jump to the bottom, double g to reach the top, and use :set nu to display line numbers.
Learn vim delete commands: x deletes current character, X deletes before the cursor, dd deletes current line, and dg deletes from current line to end of file.
Master copy and paste in vi by using yank with y, paste after with p, and paste before with P on the current line, via practical line-based demonstrations.
Master forward and backward search in vi from command mode using / and ?, navigate with n, and apply to large text files.
Wrap up this course revisits vi editor basics, from opening files and modes to save, exit, and save without saving, plus insert, delete, copy-paste, undo, and search commands.
Welcome to Your 2024 Powerhouse: Linux Shell Scripting & Vi Editor Mastery!
Ready to unlock the hidden power of automation and efficient editing? This comprehensive course is your beginner-friendly roadmap to mastering both Linux shell scripting and the legendary Vi editor in 2024. No prior experience is needed! We'll guide you step-by-step, from the ground up, equipping you with the skills to conquer your tasks.
Dive into the Shell Scripting World:
Scripting Fundamentals: Master the Linux shell, its power, and how to leverage it for automation.
Hands-On Exercises: Learn by doing! Tackle real-world tasks and gain practical experience.
Control Structures: Craft versatile scripts with if-else statements, loops, and more.
SysAdmin Automation: Automate tasks like file management, user creation, and security checks.
External Tool Integration: Seamlessly connect your scripts with Visual Studio Code, GitHub, and Nmap.
Conquer Text Editing with Vi:
Essential Vi Commands: Navigate, edit, and manipulate text with confidence.
Efficient Workflow: Master modes and powerful editing techniques.
Customization: Tailor Vi to your preferences for maximum comfort and speed.
By the end of this course, you'll be:
Scripting like a pro: Create powerful scripts to automate tasks and boost your productivity.
Editing with lightning speed: Navigate and manipulate text with ease using Vi's advanced features.
Ready to take on more: Equip yourself with valuable skills for your IT career or personal projects.
Join us on this exciting journey! Enroll today and start scripting and editing your way to success in 2024!