Shell Scripting for Absolute Beginners | Learn in 3 hours | Start from Zero
Support my work
Here are some more very useful Zero to Hero playlists on the channel.
– Free DevOps Playlist:
– AWS Zero to Hero Playlist:
– Terraform Zero to Hero Playlist:
– Python for DevOps Playlist:
In this video tutorial we will learn shell scripting from absolute basics. This video tutorial consists of three parts
– In the part 1 we will about the basics of Shell commands
– In the part 2 we will learn a little advance shell commands and write our very first shell script.
– In the final part, we will learn the most common shell scripting interview questions.
Have any questions while learning ? Don’t worry, Join our Doubts Clearing Group.
Join our Doubts Clearing Group
About me:
========
Instagram:
Telegram Channel :
LinkedIn:
GitHub:
Medium:
.
Disclaimer: Unauthorized copying, reproduction, or distribution of this video content, in whole or in part, is strictly prohibited. Any attempt to upload, share, or use this content for commercial or non-commercial purposes without explicit permission from the owner will be subject to legal action. All rights reserved.
[ad_2]
source
For Beginners, there are multiple shell scripting related videos on the channel but some people are finding it hard to identify the videos, So I have merged the videos in order and arranged them in a way that even absolute beginners can learn Shell scripting.
HI Abhi, what if the log file to capture certain error description timely and redirect to an output to a file, where file name to be in date format on each day and log time and it has to be taken twice a day and the second time log file to be appended to the first minute of the day logs.
Hi Abishek, Im absolute beginner here, and thank you so much for your videos, it is really helpful.
I have wrote a script for the 6 question, it is echo "mississippi" | grep -o s | wc -l and returned the expected answer. Is my command right?
Hi Abhishek .. i have 1 doubt … for example we have running multiple process .. like java and aws then how to find both process id in single command .. i tried like ps -ef | grep 'java|aws' but its not showing out for java and aws ..its giving output in single line.. plz guide thanks
Hi Abhishek, is there a channel or way to thank you other than buy me a coffee (ill do that tooπ ) but really thank you, because I got a job after 6 months of draught and really need to thank you
Is this enough to become pro in shell scripting ?
Thank you β€β€
Hello Abhishek,
Can you please explain the logrotate thing? and what are the best practices for a beginner in shell scripting?
Thanks a ton for such informative videos. Really appreciate your efforts π
timestamp 2:03:52 , for numeric comparison "-gt" will be used….
Thank you abhishek, previously i did not know before the shell scripting. i can tell now confidentally about the shell scripting and i need to practice the loops problems in scripting.
code provided in video(02:34:14) didn't work on my ubuntu system. I edited it as follows to make it work:
for i in {1..100}; do
if ( [ $(expr $i % 3) -eq 0 ] || [ $(expr $i % 5) -eq 0 ] ) && [ $(expr $i % 15) -ne 0 ]; then
echo $i
fi
done
Certainly! Here are the timestamps for the key sections of the video based on the provided transcript:
1. **Introduction to Shebang**:
– 00:00:00 – 00:19:58: What is Shebang (#!/bin/bash), its history, and why it is used in shell scripts.
2. **Basic Shell Commands**:
– 00:46:26 – 00:49:46: Explanation of the PWD command.
– 00:46:55 – 00:49:02: Creation of files and folders using `mkdir`, `ls`, and `cd` commands.
3. **Writing Shell Scripts**:
– 00:49:46 – 00:55:44: Writing and executing a basic shell script to create files and folders.
– 00:49:46 – 00:53:26: Syntax and structure of a basic shell script.
– 00:51:07 – 00:52:54: Importance of writing comments in shell scripts.
– 00:53:26 – 00:55:44: Changing file permissions using `chmod`.
4. **Metadata in Shell Scripts**:
– 01:11:08 – 01:12:54: Adding metadata information in shell scripts (author, date, version).
5. **Useful Commands in Shell Scripts**:
– 01:12:54 – 01:13:20: Using `df -h`, `free -g`, and `nproc` commands in shell scripts.
6. **Conditional Statements (If-Else)**:
– 02:01:57 – 02:03:39: Basic syntax of if-else statements in shell scripting.
– 02:03:11 – 02:05:07: Example of an if-else statement to compare numbers.
7. **For Loop and Complex Conditions**:
– 02:30:38 – 02:33:20: Writing a for loop to check conditions (divisible by 3, 5, and not by 15).
– 02:32:40 – 02:33:20: Defining and running a range in a for loop.
These timestamps provide a quick reference to the major topics covered in the video.
Very nice Abhishek great content, can you make a video on how to run Mysql Query using a Shell Script in detail.
Hi @Abhishek anna i need to automate the ansible dynamic inventory variable values like LB name and TG name and instance name,ASG names like placeholder file type can you suggest or do one video over this topic u bec if infra will change i don't want open the dynamic inventory file to update ignore the manually
sir the job you do in red hat , is it remote or you have to live in bangalore itself?
also can we get a remote job by living in delhi?
Hello @Abhishek, Thanks for these free DevOps learning resources, I have learned a lot from these. However, I am requesting you to please make playlist (like zero to hero) for Octopus Deploy as there are no good stuffs available related to this on the Internet, Octopus Deploy tool is also popular as other deployment tools.
Please make videos of zero to hero on MLOPS & ALOP
Guru, do we need to complete AZ305 for depth knowledge of Azure Devops or to get a better opportunity?
Hi Abhishek, could you please make a video on deploying Node.js or Java applications using AWS Elastic Beanstalk?
what editor are you using?
Thanks man π
Hey Abhishek Sir β¦. Is Your AWS playlist help me to Clear AWS Cloud Practitioner certification pls anna reply ππ»ππ»ππ»ππ»π₯²π₯²π₯²π₯²