Shell Scripting for Absolute Beginners | Learn in 3 hours | Start from Zero

Поділитися
Вставка
  • Опубліковано 10 жов 2024
  • Support my work
    www.buymeacoff...
    Here are some more very useful Zero to Hero playlists on the channel.
    Free DevOps Playlist: • DEVOPS ZERO TO HERO CO...
    AWS Zero to Hero Playlist: • AWS Zero to Hero - AWS...
    Terraform Zero to Hero Playlist: • Terraform Zero to Hero
    Python for DevOps Playlist: • Python for DevOps
    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
    / @abhishekveeramalla
    About me:
    ========
    Instagram: / abhishekveeramalla_off...
    Telegram Channel : t.me/abhishekv...
    LinkedIn: / abhishek-veeramalla
    GitHub: github.com/iam...
    Medium: / abhishekveeramalla-av
    .
    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.

КОМЕНТАРІ • 114

  • @AbhishekVeeramalla
    @AbhishekVeeramalla  2 місяці тому +75

    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.

    • @manuv2u
      @manuv2u 2 місяці тому +3

      What is the futures of IT jobs in India, considering that Vietnam and the Philippines offer cheaper labor and are rapidly growing in the industry?
      Please make a video on this topic for feature generation...

    • @PavanKumar-sq4es
      @PavanKumar-sq4es 2 місяці тому

      Pls explain how to assign free CPU cores to a specific job to run it quickly

    • @yournvn
      @yournvn 2 місяці тому +1

      Thanks a lot for your efforts and sharing knowledge 😃

    • @dipalibondar1205
      @dipalibondar1205 Місяць тому

      Thanks Sir

  • @umairsafdar369
    @umairsafdar369 2 місяці тому +15

    Finally, The most awaited video on this channel.

  • @sainadhnarne7702
    @sainadhnarne7702 2 місяці тому +4

    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.

  • @BLENDbox1
    @BLENDbox1 2 місяці тому +4

    Learned till shell scripting part-02 from playlist..didn’t understand the project so joined udemy course yesterday..Now opening UA-cam, guess what🙄
    Got this video..😍😍
    Thanks Abhishek..

  • @preethigoravara212
    @preethigoravara212 2 місяці тому +2

    Thank you so much abhishek ❤
    Because people like me from Non it background its very much difficult to write script..
    i was able to crack all the questions but when comes to shell scripting i was always didn't do it well....
    Thank you again abhishek
    U r such a gem for us ❤❤❤

  • @Kunal-ln2pm
    @Kunal-ln2pm 2 місяці тому +2

    Thanks a lot Abhi❤.... Humble man on a Mission 💪.... God bless you ✨

  • @madhuthota2659
    @madhuthota2659 12 днів тому +2

    00:02 Three-part shell scripting tutorial for beginners.
    02:59 Automation is the process of reducing manual activities using scripting.
    07:15 Creating and listing files in a shell script
    09:24 Utilize 'man' command for detailed command information
    13:46 Using Putty for SSH to virtual machine and terminal usage
    15:56 Why you should not use Vim inside a shell script
    20:13 Bash is the most commonly used shell scripting language.
    22:11 Difference between /bin/sh and /bin/bash explained
    26:26 Shell scripting in Linux involves using the 'echo' command to print messages.
    28:14 Learn how to enter insert mode and save a file in the shell script
    32:15 Granting permissions in Linux for executing shell scripts
    34:24 CH mod command changes file permissions in Linux
    38:46 Understanding permissions in Shell Scripting
    41:13 Understanding CHMOD command and using history in Linux shell scripting
    44:56 Basic commands for file manipulation and navigation in Shell Scripting
    46:45 Creating files and folders in Linux using commands
    50:33 Learn to write comments and create files and folders using shell scripting
    52:31 Creating a shell script to create a folder and files with permissions
    56:12 Creating and executing a basic shell script for automating tasks
    58:08 Shell scripting's role in DevOps
    1:02:41 Automating system monitoring using shell scripting and Git repository.
    1:04:38 Shell scripting is essential for automating tasks in a DevOps environment.
    1:08:26 Using top command to monitor processes and memory usage
    1:10:19 Learning to write a shell script and execute it for system health monitoring.
    1:14:04 Using echo statements for efficient shell scripting
    1:16:00 Before starting shell scripting, set the script in debug mode using 'set -x'
    1:19:36 Understanding how to find processes running in a Linux machine
    1:21:24 Use PS command to find and identify specific processes running on a virtual machine.
    1:25:10 Pipe command sends output of first command to second command
    1:27:14 Understanding the pipe command and its usage
    1:31:18 Understanding different input/output channels and their impact on shell commands
    1:33:20 Understanding the 'o' command for pattern scanning and processing.
    1:37:36 Utilizing 'grep' and 'awk' commands for effective information retrieval
    1:40:02 Always use set -e to ensure proper error handling in shell scripting
    1:43:45 Using set -o pipefail is crucial to catch pipe failures in shell scripting
    1:45:40 Best practices for shell scripting
    1:49:21 Using curl command to retrieve information from external storage platforms
    1:51:12 Using the curl command to retrieve information from external devices and applications
    1:55:00 Learn about the find command in Linux system for finding specific files
    1:56:44 How to switch to the root user using 'sudo su -'
    2:00:30 Learn how to use the find command and write if and for loops in shell scripting
    2:02:26 Understanding if-else condition in Shell Scripting
    2:06:30 Learn about the syntax and execution of 'for' loop in shell scripting
    2:08:29 Understanding basic shell scripting concepts is crucial
    2:12:03 Understanding the 'trap' command to manage signals in Shell Scripting
    2:13:54 Understanding signal trapping in Shell Scripting
    2:17:48 Use find command to locate files in Linux and debugging commands for troubleshooting
    2:19:37 Using 'awk' command to print specific columns in shell scripting
    2:23:14 Explanation of curl, grep, and pipe commands
    2:24:59 Understanding and practicing shell scripting for different number criteria
    2:28:47 Explaining the logic and approach for scripting in an interview.
    2:30:46 Explanation of complex condition with multiple criteria
    2:34:50 Count the occurrence of a specific character in a word
    2:36:31 Using grep command to filter and count specific characters in a defined word.
    2:40:08 Opening a file in read-only mode and understanding soft and hard links in Linux.
    2:41:56 Understanding hard links vs soft links in shell scripting.
    2:45:34 Utilize the break statement to stop execution at specific condition
    2:47:09 Understanding different types of Loops and Shell scripting's typing system
    2:50:36 Manage large log files efficiently using log rotation in Linux.
    2:52:26 Encouraging audience engagement and future plans for the channel
    Crafted by Merlin AI.

  • @kashifaliuk
    @kashifaliuk 2 місяці тому +5

    I am the first one from UK to watch your video, thanks buddy

  • @aritrachatterjee147
    @aritrachatterjee147 2 місяці тому +11

    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.

  • @basker19moon
    @basker19moon 2 місяці тому +1

    Every time you are surprisingly coming up with a new video, thanks for your hard work

  • @sadasiva3091
    @sadasiva3091 Місяць тому

    Thank you Abhishek Bhai| providing us valuable information

  • @omkargoud8216
    @omkargoud8216 2 місяці тому +3

    Thanks so much Devops Guru❤

  • @sachinojha3211
    @sachinojha3211 2 місяці тому +2

    timestamp 2:03:52 , for numeric comparison "-gt" will be used....

  • @saitejaelluru8041
    @saitejaelluru8041 27 днів тому +1

    Bro explain us logrotate will example
    And how to check where to check if log rotate is already implementing
    If possible do a short video on that

  • @narayanadaspravin
    @narayanadaspravin 2 місяці тому +1

    Thanks Abhishek garu 🙏

  • @mvenkatesh-tu6so
    @mvenkatesh-tu6so 20 днів тому

    Thank you 🙏

  • @SandyLearner
    @SandyLearner 2 місяці тому +2

    Hello !!
    Thanks for the course.
    Is this course starts from scratch , and includes lessons you were demostrating in "DevOps Zero To Hero" Series ??

  • @Aman-sn8lr
    @Aman-sn8lr 2 місяці тому +3

    Buddy...POWERSHELL , Zero to Hero series

  • @yallareddy9010
    @yallareddy9010 2 місяці тому +1

    Thank you abhishek 😊

  • @Amitjainst07000
    @Amitjainst07000 2 місяці тому +1

    Thanks for wonderful knowledge Sharing

  • @mohdrayees8919
    @mohdrayees8919 2 місяці тому +1

    Thanks alot Abhishek sir❤

  • @pradatta17
    @pradatta17 2 місяці тому

    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 🙏

  • @ashutoshnema366
    @ashutoshnema366 2 місяці тому +1

    He is a gem 💎

  • @skk-dq4kb
    @skk-dq4kb 2 місяці тому

    Hi abhi, thanks for creating this but we want some real time advance level shell scripting videos

  • @reddyv498
    @reddyv498 2 місяці тому +1

    Thank you abhishek

  • @Lucky12803
    @Lucky12803 2 місяці тому +1

    Thank you abhi❤

  • @nikhilphule8804
    @nikhilphule8804 2 місяці тому +1

    Thanks bro we need it

  • @sumankasu162
    @sumankasu162 2 місяці тому +1

    Ur great sir

  • @SunilM-x5h
    @SunilM-x5h 2 місяці тому

    Thank you ❤❤

  • @My_RocK_WorlD
    @My_RocK_WorlD 2 місяці тому +1

    Thanks man 😊

  • @mohanmurali7975
    @mohanmurali7975 2 місяці тому +1

    Anna ❤ ur content always

  • @sumankasu162
    @sumankasu162 2 місяці тому +1

    Thank u so much sir

  • @AK-hm3pn
    @AK-hm3pn 2 місяці тому +2

    Thanks!

  • @nareshv7797
    @nareshv7797 2 місяці тому +1

    Totally worthy 🎉🎉

  • @HarshKumar-ny4cl
    @HarshKumar-ny4cl Місяць тому

    Thank you

  • @bangtanangelz
    @bangtanangelz 2 місяці тому

    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?

  • @vannahemanthreddy
    @vannahemanthreddy 2 місяці тому

    abhishek make seperate video on linux commands basic to advance why because for beginners it can helpful

  • @mallikarjunkadi5069
    @mallikarjunkadi5069 2 місяці тому +1

    thanks anna😃

  • @durantapatra443
    @durantapatra443 2 місяці тому +1

    1:41:49 very new thing i learnt

  • @DevPreeth
    @DevPreeth Місяць тому +1

    Waiting for part 2

  • @jagadeesht7342
    @jagadeesht7342 2 місяці тому

    Very nice Abhishek great content, can you make a video on how to run Mysql Query using a Shell Script in detail.

  • @maggidishashank1847
    @maggidishashank1847 14 днів тому

    Deleting previous shell script again reback which command is used in shell script?

  • @ai_tek_termux
    @ai_tek_termux 27 днів тому

    Bring complete bash shell scripting course sir.

  • @theDevotionalworld
    @theDevotionalworld 2 місяці тому

    Guru, do we need to complete AZ305 for depth knowledge of Azure Devops or to get a better opportunity?

  • @harshapoola
    @harshapoola 10 днів тому

    I have 3 years of exp in support role and I am trying to switch the job I don't have any exp on shell scripting, now I am learning it.. so is this 3 hrs course will enough to add the script in my resume..pls reply me

  • @manideepakgopisetty2746
    @manideepakgopisetty2746 2 місяці тому +1

    Awesome

  • @Ayush-bl2fi
    @Ayush-bl2fi 2 місяці тому +1

    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?

    • @sudo-thinkit
      @sudo-thinkit 2 місяці тому +1

      what position you are looking for bro?? I am in Akamai - I can help you

    • @Ayush-bl2fi
      @Ayush-bl2fi 2 місяці тому +1

      @@sudo-thinkit i am in my 3rd year just starting devops
      hoping to get an internship since i have not got any
      i guess i might get in 4th year only😂

    • @amitjha35
      @amitjha35 2 місяці тому

      As per one of my friend in RH, it is Remote Job, FYI Red hat has offices in Delhi, BLR, Mumbai, Pune and Kolkata as well. if you good in coding and Linux you will definitely crack the job.

    • @Ayush-bl2fi
      @Ayush-bl2fi 2 місяці тому

      @@amitjha35 but devops is for automation right?
      the devops zero to hero playlist enough?
      what i mean is things like shell,terraform,AWS are only required
      or i have to create applications also?

    • @UdayKumar-gu2sg
      @UdayKumar-gu2sg 29 днів тому

      Bro any openings for Devops, currently I am working as network engineer​@@sudo-thinkit

  • @pranay-bh5oz
    @pranay-bh5oz 2 місяці тому +1

    is this the combination of your shell scripting videos?

  • @vijayanandjeeva2163
    @vijayanandjeeva2163 2 місяці тому

    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.

  • @ai_tek_termux
    @ai_tek_termux 27 днів тому

    Instead of curl, curlie is much better 😊

  • @parames3039
    @parames3039 2 місяці тому

    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

  • @PayalDaki-f8e
    @PayalDaki-f8e 2 місяці тому

    Hi Abhishek, could you please make a video on deploying Node.js or Java applications using AWS Elastic Beanstalk?

  • @HimanshuKumar-tr7qq
    @HimanshuKumar-tr7qq 2 місяці тому

    Sir can you make a video on the MCA specialisation in cloud computing and devops.

  • @CollegeGuftugu
    @CollegeGuftugu 27 днів тому

    Is this video enough for shell scripting

  • @RaziqueAnsari2009
    @RaziqueAnsari2009 2 місяці тому +1

    Great

  • @amitjha35
    @amitjha35 2 місяці тому +2

    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

  • @mohankrishna2689
    @mohankrishna2689 2 місяці тому

    Hello Abhishek is this for mlops.

  • @Gladerondu
    @Gladerondu 2 місяці тому

    Hi Abhishek
    Can you do playlist on DevSecOps

  • @adityajha572
    @adityajha572 2 місяці тому

    Abhishek i spent 60k on learning devops+aws but i don't get any learning from them.. i saw your videos and they are really helpful and and from 1 week i start learning from your video's only..
    Can someone become devops engineer in 3 months from your videos?

    • @sudo-thinkit
      @sudo-thinkit 2 місяці тому +2

      100% bro --by the help of his videos I got more than 110% hike

    • @shaikhsupdu-z9g
      @shaikhsupdu-z9g Місяць тому

      Unfortunetly a big NO, bcz devops is very tricky it will take atleast 6 month if you have good understanding of cloud ,networking ,linux and finaly scripting last but not least a besic of python
      if you have above skill then yeah you will probably become master in devops

  • @akhileshmu007
    @akhileshmu007 2 місяці тому

    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

    • @akhileshmu007
      @akhileshmu007 2 місяці тому

      Hi Abhishek .. waiting for ur response ..plz.. thanks

    • @harunisiaho
      @harunisiaho Місяць тому

      @@akhileshmu007 You need to add -E flag
      ps -ef | grep -E " aws|java"

  • @narayanadaspravin
    @narayanadaspravin 2 місяці тому

    Please make videos of zero to hero on MLOPS & ALOP

  • @sujaybhyrav
    @sujaybhyrav 2 місяці тому +1

    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

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  2 місяці тому

      Hearty Congratulations Sujay 🎉 . If you wish to support the channel, Buymeacoffee is the best medium

    • @sujaybhyrav
      @sujaybhyrav 2 місяці тому

      @@AbhishekVeeramalla sure Abhishek will do that

  • @ranjitha-yi5zq
    @ranjitha-yi5zq 2 місяці тому

    Can you make a video for powershell also for the beginner?

    • @UdayKumar-gu2sg
      @UdayKumar-gu2sg 29 днів тому

      Is powershell needed, when we connect to server using Linux?

  • @NationalVirals
    @NationalVirals Місяць тому +1

    nano is even better and simpler to use rather than vi or vim....isn't it?

  • @ai_tek_termux
    @ai_tek_termux 27 днів тому

    Instead of grep, ripgrep is much better 😊

  • @amandewani8391
    @amandewani8391 2 місяці тому

    Hey Abhishek Sir …. Is Your AWS playlist help me to Clear AWS Cloud Practitioner certification pls anna reply 🙏🏻🙏🏻🙏🏻🙏🏻🥲🥲🥲🥲

  • @ai_tek_termux
    @ai_tek_termux 27 днів тому

    Instead if find, fzf is much better 😊

  • @yashwanth.chaudhari339
    @yashwanth.chaudhari339 2 місяці тому

    hi 5 aug vala session record karna sir..bhale hi topmate pe becho..please sir

  • @rajashekhar1963
    @rajashekhar1963 Місяць тому

    What you told are basics of shell script

  • @leo-c2c8o
    @leo-c2c8o Місяць тому

    what does the ^C mean after each command ?

    • @CodingMakesMeHappy
      @CodingMakesMeHappy Місяць тому

      When u want to terminate anything u have to use control C. So he is using control C to terminate that line bcoz if he type enter to move to next line that invalid line gives this is not a command like that error so he is terminating every line with ctrl C which is ^C. Terminating means stopping the execution.

  • @shaikhsupdu-z9g
    @shaikhsupdu-z9g Місяць тому +1

    is it enough for devops

  • @ai_tek_termux
    @ai_tek_termux 27 днів тому

    Instead of cat, bat is much better 😊

  • @challasimhadri2063
    @challasimhadri2063 2 місяці тому +1

    Is this enough to become pro in shell scripting ?

  • @ai_tek_termux
    @ai_tek_termux 27 днів тому

    Instead top, htop is much better 😊

  • @sunkamvenkatesh1086
    @sunkamvenkatesh1086 2 місяці тому

    First like first comment ❤️

  • @narsimharao8669
    @narsimharao8669 2 місяці тому

    what editor are you using?

  • @anupshastry5969
    @anupshastry5969 2 місяці тому

  • @vivekmittal-h2i
    @vivekmittal-h2i 2 місяці тому

    Kaha se nikalte ho bhai itna time hamare lie? 🥺🥺🥺🥺

  • @narayanagaraga7023
    @narayanagaraga7023 7 днів тому

    it is zero to beginner not up to Hero

  • @janardhanreddy.b8268
    @janardhanreddy.b8268 2 місяці тому

    Please create a Linux basics, administrator, and server videos playlist related to AWS, Azzure, and DevOps, This Linux server videos playlist is important for beginners enter into cloud computing, Please help me on this problem, Thank you sir

    • @janardhanreddy.b8268
      @janardhanreddy.b8268 2 місяці тому

      window server is easily learned, but Linux is complicated; please help me sir on Linux zero to hero

  • @rajashekhar1963
    @rajashekhar1963 Місяць тому

    This is not hero ending bro

  • @sajjuquadri1964
    @sajjuquadri1964 Місяць тому +1

    If, and for loop. There nothing new you've teached to be honest. You could have shown us how this if and for loop in used in real time kind of scenario.

    • @sajjuquadri1964
      @sajjuquadri1964 Місяць тому

      Obviously bcs we will not use to print 1.to 100 number or lacks number. In shell scripting we need real time scenario used in

  • @redhatkumar-f9o
    @redhatkumar-f9o Місяць тому

    Hello sir Good Afternoon sir ek video ROOT Volume EBS ko decrease kase kare ise par laker aao
    sir mena ubuntu ec2 par volume Decrease kane ka liya 10-12 Time Try kar Liya But ec2 machine start hi nhi hoti

    • @Anonymous_810
      @Anonymous_810 Місяць тому

      You cannot decrease ebs root volume of a ec2 instance. You will have to reboot the server or make a new one I think.

  • @AnujDixit-h1o
    @AnujDixit-h1o 2 місяці тому

    First

  • @manuv2u
    @manuv2u 2 місяці тому

    What are the features of IT jobs in India, considering that Vietnam and the Philippines offer cheaper labor and are rapidly growing in the industry?
    Please make video on this..@AbhishekVeeramalla

  • @Sid.JENA94
    @Sid.JENA94 Місяць тому

    Hi im Sid from odisha .. im from non-tech background as i graduated in Bcom since 2016 and was into my family business. Now that my family business is closed due to the pandemic , I am really interested in Devops and cloud computing.. Is it too late for me as im 30years old with no experience in any field ? also do the companies hire devops fresher with career gap?? please suggest what to do @Abhishek.Veeramalla