Bash Scripting Tutorial for Beginners
ฝัง
- เผยแพร่เมื่อ 24 มิ.ย. 2024
- Learn bash scripting in this crash course for beginners. Understanding how to use bash scripting will enhance your productivity by automating tasks, streamlining processes, and making your workflow more efficient.
✏️ Course created by @Herbertech
💻 Code: github.com/herbertech/bash-in...
⌨️ (00:00) Introduction
⌨️ (03:24) Basic commands
⌨️ (06:21) Writing your first bash script
⌨️ (11:29) Variables
⌨️ (14:55) Positional arguments
⌨️ (16:23) Output/Input redirection
⌨️ (23:23) Test operators
⌨️ (25:19) If/Elif/Else
⌨️ (28:37) Case statements
⌨️ (32:16) Arrays
⌨️ (34:12) For loop
⌨️ (36:03) Functions
⌨️ (41:31) Exit codes
⌨️ (42:30) AWK
⌨️ (45:11) SED
🎉 Thanks to our Champion and Sponsor supporters:
👾 Nattira Maneerat
👾 Heather Wcislo
👾 Serhiy Kalinets
👾 Erdeniz Unvan
👾 Justin Hual
👾 Agustín Kussrow
👾 Otis Morgan
--
Learn to code for free and get a developer job: www.freecodecamp.org
Read hundreds of articles on programming: freecodecamp.org/news
Thanks for the support, Beau. Happy/excited be on the FCC channel! 😀
❤ Just found your Linux course on the other day - and now, you're here 🎉
This introductory course was very useful and I loved how visually is well structured. Actually, bash is so useful for any project. TY for this vid.
I bought an entire course on Udemy to learn linux and bash scripting and this was so incredibly clear and straightforward in comparison. Really appreciate how easily Herbert broke down bash scripting and I hope you have more courses on the FCC channel.
here for the same reason
This is an excellent Bash primer. Thank you @Herbertech for creating this and for sharing this with the global developer community. 🙏
One of the best starter bash video on TH-cam
This entire course is like an entire semester condensed into less than one hour, impressive!
as a data scientist major my class teach it not entire semester not half semester, but only one session and expect us to learn much more than this.
This has been my first online coding course and I really enjoyed the session. The language was very comprehensive and audience friendly.
First online coding course, nice! I recommend the other videos on this channel, you can basically teach yourself anything with enough commitment.
Been waiting for this. Thank you so much, FCC! 🤘
The video is so well structured. Half way through the video but couldn't stop myself from appreciating the efforts that have been put up for making this.
Wow. What a great course! This is by far the best bash scripting on the internet.
Que bueno que estén incluyendo diferentes pistas de audio en su vídeos, esta genial!
I really liked it and enjoyed, it was an fantastic course. Short but contained more valuable information about bash.
thank you so much.
Excellent ! Watched and practiced all commands in one go. This bash primer only requires very basic linux knowledge beforehand.
Hey, nice tutorial-I had to smile when you mentioned Atom as an option for a text editor. I still have a copy installed, but was surprised you mentioned it since it has been discontinued.
Completed the lecture, and yes it was amazing, hoping to see more such lectures. ✌✌✌✌
This literally came right when i needed it, thank you so much.
same!!
Same.
Same
same
It's always the perfect time for Bash Scripting.
If you had some programming background, this must have been an awesome tutorial for you. I've enjoyed this. Thanks to FCC and Instructor!
thank you so much. it was an amazing experience learning bash scripting with the amazing mentor here !!!
Great tutorial, I was searching this for a long time.
Great video! To make it even better I'd suggest that you
a) add "
" to your PS1 variable so that your typing always starts at the left margin instead of somewhere far out on the right
b) use a more readable color scheme - dark blue on black is pretty well unreadable
Thank u team, it is not easy make courses like this. Lot of love from India ❤
I was just looking for Bash scripting tutorial and FCC uploaded one, nicee
Thank you, for the audio in Spanish, I hope you continue the same, I wish you good luck and that you continue teaching.
If you're on macOS and the ${1,,} syntax isn't working for you at 25:19 it's because mac ships with a very old version of bash, and this syntax is only supported in bash 4.0+
Instead use the tr command to transform the first argument to lowercase, and use the
This is really helpful. I regret not looking into bash scripts sooner.
Exactly when I needed it! ♥
43:00 I think sed and awk (and grep) are specially useful when piped after some output. It would be useful to see examples of that usage.
Good !
A PowerShell & batch scripting tutorial would also be nice.
Thanks. Great introductory video.
lo escucho en español!! genial!! (no se si está subido así, o si yt tiene una nueva funcionalidad que lo traduce sólo. Justo Bash lo que vendo buscando para complementar mi conocimiento básico en Linux. Gracias FreeCodeCamp
Very helpful video. Thank you! -❤🔥🎇
no waaaaay ...... i just started learning bash today and the video came out
SUBSCRIBED!! hey Herbert just wanted to give a BIG THANKS for the content im a bit of a late bloomer to this "but better late than never" Ive watched this about 3x now
Thank you that was really a beginner friendly guide.
Just a quick fixage, in 23:50 double quotes and single quotes work as well.
Wow, this was very helpful! Thank you for explaining it well!
Great tutorial!
Esta traducido a español 😊, me sorprendió full
Thanks for Course.
Also in future Please make video on Powershell 7 and how to use in Cross Platform related to Cloud DevOps Automation
First of all thank you for making this tutorial, but I faced some problem being a beginner.
The first thing is that one simple concept consists of other different concepts, it would have been a better to keep things simple in order to explain the current concept. One example is that in case of arrays, there are three concepts combined which are arrays, loops and word counting, which made the understanding of the looping through the array very difficult.
very usefull this what im needing thx codecamp
Thanks, that was helpful.
increible porfin puedo tomar el curso en español
Thanks man. Cool
I literally needed this the most today and you gave it! How do you know?
Excellent :)
Great!
reall nice beginners tutoral
apt-get install nano - should be first :D great tutorial!
so I love this shell
Atlast!!!
Hi sir, thanks for your informative video, I was wondering which distro you used to make this video. Thanks
Wow... Let's mastering shells scripting.
Next video request: how to write a minimalistic programming language on bash!❤❤❤
He just scratched the surface. We need to dig deep on our own.
but how do we read more or do we visualize logically??
Thank you fcc❤
🎉🎉🎉 muchas gracias 🎉🎉🎉
finally, I know how to exit vim. thanks, FCC
i kinda love it but we still need some bash scripting courses
Hey that's a banger
#!/bin/bash/
input=${1,,}
case $input in
"yes" | "no" | "maybe")
echo "Can you repeat the question?"
;;
"malcolm")
echo "Life is unfair"
;;
"help")
echo "I don't know"
;;
*)
echo "You're not so big"
;;
esac
Thanks for the tutorial, was fun.
Deberían hacer eso con todos sus videos de su canal original, ya que tienen mucho más contenido en el que en el canal en español, deberían continuar con django rest framework
I will never use VIM! but great tutorial. Thanks again!
You saved me😊
Hi , Thanks for adding another silent yet useful language . Couple of yrs popularity of forgotten language started increasing as mostly underline Linux systems still for easy solution , bash is always available w/o modification
Pls make detail 6-7 hr video in future providing real life examples related Cloud Linux Automation DevOps etc 😊😊
This tutorial was very helpful and easy to follow. Thanks.
between bash and powershell what do you recommend? for cloud azure :/
en español.. excelente!
Thank you
Is it possible to create a bash script to stop/start tomcat and holly services as well as reboot a server?
Can we please have a course on practical Ansible
I'm enjoying the course as well. Although I'm only a third of the way finished, I don't want to neglect offering this comment, or query really.. anyone else having trouble using echo without enclosing string in quotation marks? My terminal spat back at me, "no matches found: name?" It wasn't hard to figure out it was the missing quotes that annoyed my terminal-along with the '?.' It was worked fine if I didn't code the string in the form of a question, but better of course with the " ". Seems like quotes aren't always required for certain setups; but maybe best practice? I'll be curious is this is addressed later in the session. Great fun, though!
Wow..I spent almost an hour to figure this out. Thanks bro.
Thanks
informative
This is my free university.
My bash free code camp broke 😢... Have to start it over. Anyone know how to fix it?
Code road just keeps loading and won't finish. Followed all the trouble shooting
Nice tutorial, it felt so short
The Spanish audio is great, but can I would like to here it in English if it is possible. How can I switch to original audio? Or is this the original audio?
Nice and useful! Liked the style and tempo. But a few wishes: command line prompt in this video is ugly and takes valuable space (that's why example commands "jump" to next lines, btw). It could be done in style even in WSL. And to this GNU/Linux in that mediocre OS that is called windows. Why? Why you are trying, as saying goes, "get tonsils through the bottom"? 😉
what compiler you use admin is that online or offline?
I was looking for shell scripting few hours ago.
did you find it?
is bash and shell scripting different??? i know shell scripting so should i require to learn bash seperately
difficlt to recognize the code everything is dark ? the words and the command window
11:38 here it would be good to run ls -l again and show the permissions after chmod
Can you make tutorials on verilog, vhdl coding
32:00 Seriously what the **** is this syntax !!!
Why should not to use :x in vim instead of :wq?
chmod is not working in my MINGW64 Hyper Terminal, how can i fix this??
Que bien. Hagan cosas en español para los hispanohablantes
Thanks, I completed your course. ✅
14:52 last name instead of list name, I make this kind of mistake a lot, too.
Bash is maincharactor in FF12.
Wow.
to jump all the linux basics go to minute 25.
Day 1
Automate services to start stop script
Damn, its really easy if you're already familiar with Linux environment
Thank you for the translation to spanish... But beeing a spanish native speaker, I cant't hardly understand the audio. I'd rather listen to an English audio version to be able to understand the content.
11:15 30 Dec 26 - back to the future!
We want Full Stack development
link of your linux video please?