Sign up for Linode here: ntck.co/linode and you get a $100 Credit good for 60 days as a new user!
Continue on your journey to becoming a better nerd with NetworkChuck as he shows you how to start your day off right using a BASH script!! Did you know that a BASH script can change your life? In this episode of Bash scripting RIGHT NOW, we cover a life changing bash script that uses the new concepts of VARIABLES and ARGUMENTS.
🔥🔥Get access to the EXTENDED version with extra BASH goodness: ntck.co/bashcourse (Join NetworkChuck ACADEMY!!)
**Sponsored by Linode
SUPPORT NETWORKCHUCK
---------------------------------------------------
➡️NetworkChuck membership: ntck.co/Premium
☕☕ COFFEE and MERCH: ntck.co/coffee
Check out my new channel: ntck.co/ncclips
🆘🆘NEED HELP?? Join the Discord Server: / discord
STUDY WITH ME on Twitch: bit.ly/nc_twitch
READY TO LEARN??
---------------------------------------------------
-Learn Python: bit.ly/3rzZjzz
-Get your CCNA: bit.ly/nc-ccna
FOLLOW ME EVERYWHERE
---------------------------------------------------
Instagram: / networkchuck
Twitter: / networkchuck
Facebook: / networkchuck
Join the Discord server: bit.ly/nc-discord
0:00 ⏩ Intro
0:51 ⏩ Quick challenge!
1:25 ⏩ Getting your Linux lab ready!
2:33 ⏩ Challenge review!
3:59 ⏩ What the junk is a variable?
6:32 ⏩ Making bash read
8:16 ⏩ Arguments, the not yelling kind.
9:03 ⏩ Make your own argument!
11:12 ⏩ Making even more variables!
11:53 ⏩ Using our new variables!
13:11 ⏩ Outro
AFFILIATES & REFERRALS
---------------------------------------------------
(GEAR I USE...STUFF I RECOMMEND)
My network gear: geni.us/L6wyIUj
Amazon Affiliate Store: www.amazon.com/shop/networkchuck
Buy a Raspberry Pi: geni.us/aBeqAL
#BASH #Linux #learnBASH
I really like this guy, he is a great teacher.
Thank you!
I agree one of the best 😮💨
agreed
@Mituz pffft~ your wife got annoyed that you didn't make her day using the $1 in the script and you're taking it out on here aren't you! hmmm, I think reading the documentation would suit your learning style. But don't be mad when you see an exclamation mark (!) in the code lol ;-)
He is cutting everything short now .. should check out his other videos ... Way better .. his energy pours out in all of them so it makes it worth it to watch them
Being a programmer for 4 years now, I've never been so excited about defining variables!
I agree with you 😂
haha, same dude. I've coded all these years and somehow this was so exciting.
So true😂
I'm backend engineer and i know bash scripting and write a few advanced scripts, i still watch and paused the video and did the challenge. your style of teaching is cool and effective. i really enjoy your vids.
me too haha
Thank you Osama, very cool.
I'm new to bash scripting, have been writing a few recently to ease my work on a project, what is considered advanced? Loops, variables, envs? It would be cool to see one video on more advanced techniques! Handling stout and creating variables more dynamically...
Hey Chuck. Love your videos! You're best at explaining the stuff in IT, and getting us engaged and hyped into it as well! I've learned a lot about IT from your videos. Never ever stop what you're doing, because you're doing an amazing job!
I have been an software engineer for almost 8 years, I already know everything in this video but it is so enjoyable to watch Chuck to explain these things.
Hey, Chuck! I wanted to give you a huge thank-you. The things I've learned from your videos have not only aided in landing me a job in I.T., but continue to supplement my skill set as I go! I'm forever grateful!
Lets goooooo! Just what I was needing. Thanks for the quick upload of part 2 Chuck!
Hey man do you remember the time you were feeling down and out about the views of some of your content - Just know that I am glad that you kept the momentum and you are gaining velocity. All of the stuff that you do is great to watch and listen to while I program, man. Keep up the positivity and keep up with sharing the cool projects :P If you ever wanna collab let me know. I would enjoy helping you get some content out there for DevSecOps.
If Chuck has ever felt down or out, you definitely can't tell by the tone of his voice... Maybe it's just the coffee
@@matthewfaherty Trust me he made a sad defeated video not that long ago and you could hear and see it
@@fxdtech what is the video ?
I mean its rough having 2Mill subs but only get 300k views. Just starting a series and letting it hang without new episodes kinda hurt them
Same like publishing great house mix tapes on soundcloud, frustrating
I love his excitement for any videos he makes on his channel. It's something you would get with a very few amount of teachers. This, right here, is someone who's passionate about his channel
After watching this video I was able to automate setting up a new directory for html/css projects with blank index and style files included. I know it wasn't a particularly arduous process to begin with but now it's just one command. I am brand new to linux/shells/command/etc. so I thought this was cool enough to warrant my first time commenting on any video. I super appreciate your work, you are making my journey into IT much more enjoyable.
Your enthusiasm is half the reason I click your videos man... there's a lesson in there somewhere for the rest of us. Thanks for continuing the bash content!!
I just discovered this channel , the quality of the videos is INSANE. im sticking around for all of it
Im not a beginner, and I know a small amount of bash, but I still find your attitude and style great. You make programming sound fun which is honestly so powerful for beginners, and I wish Id found you before you randomly popped into my home feed.
Your lectures are the best! No book or teacher can explain as well as you do.
Ive been wanting to get into IT but found it so intimidating. Since finding chucks channel, it’s really motivated and made IT seem very possible and I know will change my life. Being deployed currently, you’re a daily part of my routine in my self learning and have already learned so much in such a short amount of time. So thank you sir for such great videos and changing the course of my career.
I know a bit of bash already, but I still watched this just cuz Chuck's infectious enthusiasm as he teaches this stuff is contagious and helps me get motivated and excited about learning new things. thanks Chuck!
Legit good, gonna watch later currently in depression
:( Do 20 pushups and then watch the video.
@@NetworkChuck doing since week, but not feling motivated idk just complicated life issues. I'm fighting on it.! Thanks a lot for response it meant a lot...
@@jaradhiggins6599 You're not alone. Stay strong! Exercise does help :)
7:52 I've been a self-made Linux admin for YEARS on my home network, I've scripted everything in the world, and never knew how to actually capture in-line arguments from the user like this. You sir, are amazing. I knew everything else in this video, but this one piece of information will prove invaluable in the future, :-)
What? How have you been doing it for then? It's one of the first things most people learn w/ bash.
@@sugasheeze I would just capture input from the user as a variable, or manually grab a known environment variable or something. I never knew how to use $1 to grab arguments right from the launch command.
@@gerowen i think you started with c++ , that's why. I have this issue for every language i learn. Everything is stored into var C++ god command's.
Same
this has to be the most engaging, interesting and like hype filled youtuber doing IT related tutorials ever. The energy you bring to this video makes all the other youtubers I've watch look like 90yr old's. Love it hahaha.
Seeing your vid for the first time. I already know advanced level BASH scripting, but your enthusiasm and excitement while explaining is fun, hilarious and very encouraging to beginners. Keep up the good work.
Hello sir pls continue bash script series
Second param is $1. First param $0 is the name of the script... which is useful.
Wow that's probably THE most enthusiastic intro to shell script I've ever seen! Good job!
seriously cant wait for part 3!! this is the first time someone has taught this to me and it has just gone straight in!! especially handy as im a network engineer and so much more of my workspace is being automated!! so your really helping me out :)
Thank you for getting this one out so soon after the last, Chuck!
Learned few new things :) keep continuing the series .
I’m in your Discord server and videos like these coupled with all the kind and insanely smart people there are preparing me so well for my Linux+ cert exam. Thank you so much for the quality content man!
Thanks Chuck, love your enthusiasm. You take a subject I been avoiding most of my career and made it fun.
This is one of our favourite channels on KZhead right now. Chuck you are the man! 😘
The reply above me is a scam bot don’t fall for that scam Edit: the bot reply was deleted
@@youtube.user.1234 OK we're scambots now. Think you better check that one with @youtube
@@SlySportz looks like that reply was deleted. I wasn’t calling you a scam bot. There was this crypto scam bot replying to people’s comments telling to call some phone number which would lead to a scam
I appreciate your effort to learn something then teach people what you learnt with a better way! Keep Going
As someone who has never done Bash, would using quotes even for one word variable be best practice?
@@GaryStewart2020 you will save just two tabs on the keyboard so it doesn't matter actually...
Coming from a non-technical background and transitioning, you’ve made learning indefinitely easier, and fun bc of your personality and teaching style. Never change ✊🏾
as a linux sysengineer/programmer for 15 years, i love how you make something that is so simple for us for regular/not-IT people fun. yeah i knew that stuff, but i searched for a video that teaches a newbie and i can say, your video seems like a good start into shell scripting and i will use it as a stepstone for teaching. good job :)
Whoa !! Awesome Stuff man . I didn't knew '$1,$2....' arguments can be used to enter inputs before even executing the script . Thanks chuck . Need more Shell scripting Videos .
The reply above me is a scam bot don’t fall for that scam
Dude you're such a good teacher! Halfway through this video I wrote a script that makes a new directory, takes your input to name it, creates new index.html and style.css files inside it, and opens it in VS Code! I feel so accomplished hahahaha
What a project, I will be doing this too :)
#!/usr/bin/bash echo "Type the project name" read projectName mkdir $projectName touch $(pwd)/$projectName/index.html touch $(pwd)/$projectName/style.css touch $(pwd)/$projectName/index.js echo "Your Project has been created"
I'll speak beard to beard here, Chuck, your videos have been the most engaging while to-the-point videos on these more technical topics that I have ever run into, and I am SUPER thankful for this series in particular, as I have inherited a veritable sysadmin disaster, and need to learn how to script safely for business-critical ops, and quickly. This channel right here has been the most useful resource I have found yet!
Amazing series man! Perfect timing for this since I’m learning it now.
I love this BASH series...
The reply above me is a scam bot don’t fall for that scam
Sign up for Linode here: ntck.co/linode and you get a $100 Credit good for 60 days as a new user! 🔥🔥Get access to the EXTENDED version with extra BASH goodness: ntck.co/bashcourse (Join NetworkChuck ACADEMY!!) 0:00 ⏩ Intro 0:51 ⏩ Quick challenge! 1:25 ⏩ Getting your Linux lab ready! 2:33 ⏩ Challenge review! 3:59 ⏩ What the junk is a variable? 6:32 ⏩ Making bash read 8:16 ⏩ Arguments, the not yelling kind. 9:03 ⏩ Make your own argument! 11:12 ⏩ Making even more variables! 11:53 ⏩ Using our new variables! 13:11 ⏩ Outro
hi
Make videos on python instead or conform if that playlist is rip
Make long playlist on bash cover everything. Thanks you are awesome
Hello chuck try this kzhead.info/sun/g9lyZdWja6ehq6M/bejne.html
Networkchuck I need ur help pls
earned another sub from this video! I have been using linux for a few months but I had not gotten into scripting yet. Thanks for your efforts in making it easy to learn. The pauses to test things make the learning more effective. I am excited to see your next tutorials!
This is by far the best bash tutorial I have ever watched. Very nice!
when is python ep.7... the python series is amazing please continue doing it
I am learning python because of you
I have used KZhead forever now and have never left a comment before today. I actually was smiling and having a blast folowing along learning this awesome stuff! I have taken a post secondary course teaching bash and as you could probably guess, that was extremely dry stuff compared to this. Thanks for bringing joy and entertainment into learning NetworkChuck! Definatly excited to continue learning from all the great content you have on your channel!
I am following the bash series. You are an outstanding teacher. You explain really good as well having the ability to transform boring topics like programming into the most exciting stuff to learn. Keep it up brother. My love & support for you.
This serie is the best! Thank you for it!
thank you!
Hacking the youtube algorithm, ethically. Also... sudo get me some coffee
“Sudo get me some coffee” hahahahaha
Great content as usual you are on a roll with your training series.
Yes, please make more of these - I love learning so much from you. I can't wait for the next one!
Looks like the rest will be on his website. I'm definitely considering subscribing.
I think you do a great job of driving home the basics and then we get to the cliff all too often where we divert to a different platform. I know you have to make a living I get it, but wouldn't growing your viewing hours, likes, subs grow your channel organically? Or is the target audience too small? I know some other youtubers also use flaotplane or patreon, not trashing your business model but I do find it bit frustrating to be into your teachings and then we just stop.
*Talking about trading crypto/stock, Crypto market has brought me great success!!! Irrespective of the economic downturn I can boast of over $57000 every month on my investment. Thank you Kimberly Jose for your focus on quality stocks. blessings🙌*
After a successful investment you have nothing to worry about, whether the rise and fall of economy or anything won't affect you, make your future brighter, by making good investment.
I trade with expert Kimberly Jose, the profit are secured and over a 100% return from my short-term trade was sent directly to my wallet.
All you need as a beginner to make good profit from cryptocurrency is a professional trader who will trade on your behalf else you may make losses.
It's fascinating to hear that someone here employ expert Kimberly's trading strategy, I thought I'm the only one trading with her
My first investment with expert Kimberly Jose gave me over $38,750 and that has made me reinvest with her, I got four of my friends involved with her already
I wish your videos existed back when I was learning this stuff! You're a great teacher, and you make this look fun and easy.
Never sat and watched 3 videos straight of the same person without break. You are very important to our community! Thanks for all your videos, sir!
Please make more of these!!! They were extremely helpful to me when I was stuck trying to get my first script to work!
I've watched lots of these videos online and Chuck is by far the best teacher. You are awesome man!
I'm new to your channel and I wonder how far this series will go. I am very effective at using bash for my work, but I know that only exposes me to a small cone of functionality; mostly automating hardware/pcie interactions and parsing data. Good stuff and nice, active presentation. Keep at it!
I worked with AutoIT and this feels somewhat similar to that and I'm happy with this so far! Thank you for being the middle school computer lab teacher that I should have had back in '98.
finally a tech teacher who makes learning fun and actually interactive KEEP IT UP I NEED MORE!!
bro you are a awesome teacher, my 11 year old daughter with 0 scripting knowledge followed this tut perfectly, even went outside the tut, adding in her own inputs and variables , great job! the joy in her eyes was awesome to see! she was proud. :)
Keep it up buddy .. you are doing a tremedous job that always be appreciated .. if you have seen some comments pushing for more .. this is just because we LOVE your videos and the materials introduced .. but this is how the fans act .. we always seek MORE from the ones we recognize .. cheers buddy! your videos are viral to the extend of the other parts of the world .. I am from EGYPT ❤🇪🇬 ❤
Dont know how i found your channel but im glad i did! Your videos inspires to learn to program etc and it inspires me to work in IT. Keep up the good work Chuck!
I’m not new to bash scripting..but I love how lucidly you explain stuff, Chuck. Also, challenge accepted! I’ll now write a script which prints the output you showed at the end!
CHUCK - I've been an IT professional and programmer for 27 years - running my own home-based MSP/coding business for the past 12. I just wanted to say that your content and delivery are fantastic! Tech is ever-changing and the best of us are learning new skills and taking multiple courses every single year in a futile, but crucial, effort to keep up. I'm subbing to your channel and sending my junior techs here to do the same. Keep it up!!
Thank you chuck really looking forward for this series of bash!
Bash scripting is so awesome. I feel motivated to learn much more. Thank you for showing this.
Fr makes learning all this so fun. Videos on linux and tech are just so unbelievably boring and it makes learning so hard. But people like you actually make the learning process not only so much easier but way more fun. Thank you so much
Love you Chuck for all the contents you have been throwing lately.
The quality in these vids is unreal. Thank you
just imagine if lectures had this much passion, Chuck getting excited over a variable it is honestly something beautiful.
Hey Chuck I'm new to Linux and your method of teaching absolute beginners the wonders of shell scripting is amazing keep them videos coming bro.
LOVE the way you do these videos. You make learning fun and that makes me want to learn more. THANK YOU.
Dude, you took a topic that has intimidated me for hte longest and made it so easy. Liked and subscribed. Thank you
Love this guide Chuck! So excited to create my own welcome script. Your weather part made me curious at the end, and the wttr.in seems like the one you used. Just going to work on integrating curl wttr.in into my bash script, as it didn't appear to work on my initial attempt.
What a motivator! This is better than TV ever, like ever! I was born 60 years too old. I could have grown up with and actually learnt this now and even enjoyed learning it. Well done Chuck. Just go man, you are on the right path. You figured it out. humane and humour.I don't appreciate people that are happy so much but I'll let you be so. I hate happy people.
Like most folks here…I’ve been in IT and cybersecurity for years and know all of the concepts being taught here. Still watched and enjoyed this whole video. This dude’s charisma while teaching the IT fundamentals is infectious…lol! 👏
Your energy in this particular video was extra contagious!! 😀
If only my teachers in programming class were as fun and knowledgeable as you, I would ace all my assignments and test. Great video btw
Amazing content man, actually getting somewhere with IT, big thanks to you Chuck! 😊
What!? That's already 14 mins?! I guess this proves that time flies fast if you love what you are doing and learning. Still you're a great speaker and that's also a big factor! More power!
Really good man. You are awesome dude. Like short videos and to point. Thanks for doing this.
you are the only guy i know that can make this stuff seem fun, huge respect for that
Hi ! I'm from Brazil and I love your content!! I love how you record your videos and how you involve your whole family, it's very good!! Thanks for sharing quality content!
What an amazing video, it's the first time I've seen a video from your channel, I loved the animation as you explain the concepts, excellent lesson.
I just love learning from you. You are the most exciting and fun teacher to learn from. Lots of love and respect for you bro. Have a good and happy life
Thank you Chuck!!! I'm new to this and with your videos, I really feel more comfortable moving forward in this IT journey.
Dang, I haven't checked in a while and lo and behold 2.18 million subscribers, I remember when I subbed it was sub 100k. Congrats on such growth and great content.
Bash scripting is one of the most beautiful tool I've ever discovered. I use it daily to do my calculations as well as to process data and manage files. Thank you for this video.
Man I really like you the way you teaching the atmosphere everything is amazing about you keep going
you the best teacher every time i follow up on your tutorial i get excitement , thank you
You're the best, dude!! Bash scripting is finally starting to go my way, all thanks to you. 👏👏👏
Thanks, cannot wait for next part of the series. Bash is awesome!
Great tutorial! Your teaser of a finished script sent me down the rabbit hole this afternoon, but I got it working and learned a lot along the way!
Agreed, I got stuck trying to understand how I was supposed to show just the current weather and not all the forecasts, eventually got there.
You are a very great Teacher. I wish I had you as a teacher back in my school days.
All we need in our life much coffee and much more Chuck! You are awesome, thx for all your video, God bless you!!
Clear concise explanation, every time. Thank you,Chuck!
I love the way you increase difficulty step by step, great video thanks! And yeah, you have the best beard ever ;)
I've 'Ben" looking for an exciing way to learn bash and commands in linux and this video is golden. You now have a new sub.
you sound so excited about bash scripting. its getting me hyped about creating variables
I wish you had unlimited time and energy to make videos. Dude! You are the best!
Yes! Show us more! This was another great video, thanks Chuck!
your energy alone made me subscribe. bless you for it