Bash Scripting Tutorial for Beginners

  Рет қаралды 386,387

freeCodeCamp.org

freeCodeCamp.org

Күн бұрын

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

Пікірлер: 173
@Herbertech
@Herbertech Жыл бұрын
Thanks for the support, Beau. Happy/excited be on the FCC channel! 😀
@PureAwareness76
@PureAwareness76 25 күн бұрын
❤ Just found your Linux course on the other day - and now, you're here 🎉
@frankenweeny8785
@frankenweeny8785 10 ай бұрын
This entire course is like an entire semester condensed into less than one hour, impressive!
@eperez_yt
@eperez_yt Жыл бұрын
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.
@quincylarsonmusic
@quincylarsonmusic Жыл бұрын
This is an excellent Bash primer. Thank you @Herbertech for creating this and for sharing this with the global developer community. 🙏
@ivyscripting7240
@ivyscripting7240 11 ай бұрын
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.
@user-br9zx3ip3x
@user-br9zx3ip3x Ай бұрын
here for the same reason
@mhmdmd9525
@mhmdmd9525 9 ай бұрын
I really liked it and enjoyed, it was an fantastic course. Short but contained more valuable information about bash. thank you so much.
@Markus-iq4sm
@Markus-iq4sm 11 ай бұрын
One of the best starter bash video on KZbin
@abiodunbabalola451
@abiodunbabalola451 4 ай бұрын
Wow. What a great course! This is by far the best bash scripting on the internet.
@kaustavchakrabarti1967
@kaustavchakrabarti1967 Жыл бұрын
This has been my first online coding course and I really enjoyed the session. The language was very comprehensive and audience friendly.
@Entropy67
@Entropy67 Жыл бұрын
First online coding course, nice! I recommend the other videos on this channel, you can basically teach yourself anything with enough commitment.
@iandotjs
@iandotjs Жыл бұрын
Been waiting for this. Thank you so much, FCC! 🤘
@anandprakash2483
@anandprakash2483 10 ай бұрын
Excellent ! Watched and practiced all commands in one go. This bash primer only requires very basic linux knowledge beforehand.
@ssmith5048
@ssmith5048 11 ай бұрын
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.
@funkyboy4882
@funkyboy4882 Жыл бұрын
Completed the lecture, and yes it was amazing, hoping to see more such lectures. ✌✌✌✌
@giancarlovalentin9569
@giancarlovalentin9569 Жыл бұрын
Que bueno que estén incluyendo diferentes pistas de audio en su vídeos, esta genial!
@muyivushafiq8389
@muyivushafiq8389 6 ай бұрын
If you had some programming background, this must have been an awesome tutorial for you. I've enjoyed this. Thanks to FCC and Instructor!
@cuthbertmilligen
@cuthbertmilligen 4 ай бұрын
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
@vijayjeee8806
@vijayjeee8806 Жыл бұрын
Thank u team, it is not easy make courses like this. Lot of love from India ❤
@fmaylinch
@fmaylinch Жыл бұрын
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.
@BrunO-dy9ro
@BrunO-dy9ro Жыл бұрын
This literally came right when i needed it, thank you so much.
@debbie_bae
@debbie_bae Жыл бұрын
same!!
@itzvoko1
@itzvoko1 Жыл бұрын
Same.
@skatetick
@skatetick Жыл бұрын
Same
@hakadmedia
@hakadmedia Жыл бұрын
same
@astramieri
@astramieri Жыл бұрын
It's always the perfect time for Bash Scripting.
@vadivelan4228
@vadivelan4228 9 ай бұрын
Great tutorial, I was searching this for a long time.
@rachit_joshi
@rachit_joshi 7 ай бұрын
thank you so much. it was an amazing experience learning bash scripting with the amazing mentor here !!!
@alejandrorobles4921
@alejandrorobles4921 Жыл бұрын
Thank you, for the audio in Spanish, I hope you continue the same, I wish you good luck and that you continue teaching.
@s4nzuu921
@s4nzuu921 Жыл бұрын
I was just looking for Bash scripting tutorial and FCC uploaded one, nicee
@hosqu_
@hosqu_ Жыл бұрын
Exactly when I needed it! ♥
@hexbinoban6170
@hexbinoban6170 Жыл бұрын
Good ! A PowerShell & batch scripting tutorial would also be nice.
@Torviticus
@Torviticus Ай бұрын
This is really helpful. I regret not looking into bash scripts sooner.
@dynamix9916
@dynamix9916 2 ай бұрын
Thanks. Great introductory video.
@lucianaquiroga4405
@lucianaquiroga4405 Жыл бұрын
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
@denovo3949
@denovo3949 Жыл бұрын
Very helpful video. Thank you! -❤‍🔥🎇
@joecrak249
@joecrak249 4 ай бұрын
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
@alexnovik
@alexnovik Жыл бұрын
Great tutorial!
@PolyCodeOfficial
@PolyCodeOfficial Жыл бұрын
Wow, this was very helpful! Thank you for explaining it well!
@SandyLearner
@SandyLearner Жыл бұрын
Thanks for Course. Also in future Please make video on Powershell 7 and how to use in Cross Platform related to Cloud DevOps Automation
@thething6268
@thething6268 Жыл бұрын
no waaaaay ...... i just started learning bash today and the video came out
@aditya__exe
@aditya__exe Жыл бұрын
I literally needed this the most today and you gave it! How do you know?
@mdbarin2014
@mdbarin2014 5 ай бұрын
Thanks man. Cool
@kevinramon9855
@kevinramon9855 Жыл бұрын
Esta traducido a español 😊, me sorprendió full
@abdurrehmankhalid2290
@abdurrehmankhalid2290 Жыл бұрын
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.
@TwoTimesTwentyOne
@TwoTimesTwentyOne Жыл бұрын
Excellent :)
@thenoob4208
@thenoob4208 Жыл бұрын
increible porfin puedo tomar el curso en español
@TrueSQN
@TrueSQN Жыл бұрын
apt-get install nano - should be first :D great tutorial!
@Wuhihihaha
@Wuhihihaha Жыл бұрын
very usefull this what im needing thx codecamp
@davoodd1638
@davoodd1638 Жыл бұрын
Hi sir, thanks for your informative video, I was wondering which distro you used to make this video. Thanks
@Arsche
@Arsche Жыл бұрын
so I love this shell
@srsr6099
@srsr6099 Жыл бұрын
Thank you fcc❤
@timtom3403
@timtom3403 7 ай бұрын
reall nice beginners tutoral
@andersonmendoza9959
@andersonmendoza9959 7 ай бұрын
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
@SandyLearner
@SandyLearner Жыл бұрын
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 😊😊
@Mintberrycrunch982
@Mintberrycrunch982 3 ай бұрын
I will never use VIM! but great tutorial. Thanks again!
@pragathishraja3460
@pragathishraja3460 Жыл бұрын
You saved me😊
@brayancarabali
@brayancarabali Жыл бұрын
🎉🎉🎉 muchas gracias 🎉🎉🎉
@Anonymous34958
@Anonymous34958 2 ай бұрын
finally, I know how to exit vim. thanks, FCC
@garfield-pro
@garfield-pro Жыл бұрын
He just scratched the surface. We need to dig deep on our own.
@coolmor9087
@coolmor9087 2 ай бұрын
but how do we read more or do we visualize logically??
@SandokhanRhaydrick
@SandokhanRhaydrick Жыл бұрын
Wow... Let's mastering shells scripting.
@nikolanikola1497
@nikolanikola1497 5 ай бұрын
Great!
@tony-go-code
@tony-go-code 8 ай бұрын
Thank you
@Bricky2021
@Bricky2021 21 күн бұрын
Next video request: how to write a minimalistic programming language on bash!❤❤❤
@random_things2023
@random_things2023 Жыл бұрын
i kinda love it but we still need some bash scripting courses
@mhdunknown
@mhdunknown Жыл бұрын
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
@mazal-bb
@mazal-bb 8 ай бұрын
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!
@krishnanigalye1173
@krishnanigalye1173 6 ай бұрын
Wow..I spent almost an hour to figure this out. Thanks bro.
@enclave2k1
@enclave2k1 2 ай бұрын
#!/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.
@cpqvenom
@cpqvenom Жыл бұрын
Atlast!!!
@kidcobain1
@kidcobain1 Жыл бұрын
en español.. excelente!
@yogeshlinganna521
@yogeshlinganna521 Жыл бұрын
This tutorial was very helpful and easy to follow. Thanks.
@user-cf8bs5bg9q
@user-cf8bs5bg9q 3 ай бұрын
informative
@hereliesadvaith
@hereliesadvaith Жыл бұрын
Thanks
@Jacob-ABCXYZ
@Jacob-ABCXYZ Жыл бұрын
Hey that's a banger
@illegalsmirf
@illegalsmirf Жыл бұрын
Can we please have a course on practical Ansible
@gatjuatwicteatriek4590
@gatjuatwicteatriek4590 Жыл бұрын
This is my free university.
@berlincmos
@berlincmos 7 ай бұрын
difficlt to recognize the code everything is dark ? the words and the command window
@samoylov1973
@samoylov1973 Жыл бұрын
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"? 😉
@hotrodhunk7389
@hotrodhunk7389 Жыл бұрын
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
@johnvardy9559
@johnvardy9559 10 ай бұрын
between bash and powershell what do you recommend? for cloud azure :/
@ramon9789
@ramon9789 Жыл бұрын
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?
@untold8718
@untold8718 Жыл бұрын
Can you make tutorials on verilog, vhdl coding
@pj-nz6nm
@pj-nz6nm Жыл бұрын
I was looking for shell scripting few hours ago.
@leonstone3443
@leonstone3443 8 ай бұрын
did you find it?
@pmitchelle
@pmitchelle 11 ай бұрын
Is it possible to create a bash script to stop/start tomcat and holly services as well as reboot a server?
@ariolaravencenteno8115
@ariolaravencenteno8115 6 ай бұрын
what compiler you use admin is that online or offline?
@haricharangv
@haricharangv 9 ай бұрын
is bash and shell scripting different??? i know shell scripting so should i require to learn bash seperately
@fmaylinch
@fmaylinch Жыл бұрын
11:38 here it would be good to run ls -l again and show the permissions after chmod
@augustinegideon8059
@augustinegideon8059 10 ай бұрын
Wow.
@tombombadil8481
@tombombadil8481 7 ай бұрын
Flight of the Conchords
@vamshikrishna8939
@vamshikrishna8939 Жыл бұрын
We want Full Stack development
@VideoramaTravel
@VideoramaTravel Жыл бұрын
Why should not to use :x in vim instead of :wq?
@RhythmReels97
@RhythmReels97 6 ай бұрын
Day 1
@dobingify3130
@dobingify3130 11 ай бұрын
chmod is not working in my MINGW64 Hyper Terminal, how can i fix this??
@gyanashekka
@gyanashekka Жыл бұрын
Thanks, I completed your course. ✅
@k.m.tanzibulahmmed9789
@k.m.tanzibulahmmed9789 8 ай бұрын
link of your linux video please?
@MatveiPB8
@MatveiPB8 Жыл бұрын
Que bien. Hagan cosas en español para los hispanohablantes
@Entropy67
@Entropy67 Жыл бұрын
Damn, its really easy if you're already familiar with Linux environment
@oscarms6067
@oscarms6067 Жыл бұрын
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.
@bernetsubo4431
@bernetsubo4431 Жыл бұрын
Happy Linux :)
@aram5642
@aram5642 4 ай бұрын
11:15 30 Dec 26 - back to the future!
@user-fu6rk4xg1r
@user-fu6rk4xg1r 2 ай бұрын
to jump all the linux basics go to minute 25.
@Arsche
@Arsche Жыл бұрын
Bash is maincharactor in FF12.
@Vishal_0841
@Vishal_0841 Жыл бұрын
Hey guys please guide me I have completed html, css and bootstrap but I want to study JavaScript so please provide me that which KZbin video is best for JavaScript as a beginner 🙏🏿
@rohithvishaal2022
@rohithvishaal2022 Жыл бұрын
Not a KZbin video but checkout the Odin project. On udemy there is a course provider called Academind and he has a KZbin channel with the same name as well. Check him out
@freecodecamp
@freecodecamp Жыл бұрын
Try this JavaScript course: kzbin.info/www/bejne/hpy9f6JtgquBfMk
@enjoful
@enjoful 6 ай бұрын
"this is aimed at the average Windows user, ...Now let's open VIM"
@noureldin5611
@noureldin5611 2 ай бұрын
32:00 Seriously what the **** is this syntax !!!
@subhanisk7790
@subhanisk7790 Жыл бұрын
Automate services to start stop script
@ShortusRandomus
@ShortusRandomus 2 ай бұрын
Greetings, community! In this video, I've learned a lot, and I'd like to showcase how I edit gameplay videos using a script to extract key moments and connect them with text-to-speech quotes. While the quality may not be top-tier, those interested in my process should visit my channel. Look out for a comprehensive tutorial video dropping in the next few days. Join me behind the scenes!
you need to learn BASH Scripting RIGHT NOW!! // EP 1
12:14
NetworkChuck
Рет қаралды 933 М.
Become a bash scripting pro - full course
36:00
CODE IS EVERYTHING
Рет қаралды 25 М.
Kick Awesome
00:58
Russo
Рет қаралды 109 МЛН
Beginner's Guide to the Bash Terminal
1:14:37
Joe Collins
Рет қаралды 2,3 МЛН
How To Create a Backup Script?
14:08
BugX
Рет қаралды 10 М.
BASH scripting will change your life
14:18
NetworkChuck
Рет қаралды 981 М.
Bash in 100 Seconds
2:33
Fireship
Рет қаралды 1,4 МЛН
Learning Awk Is Essential For Linux Users
20:02
DistroTube
Рет қаралды 277 М.
This 14 year old MacBook has some features M1 could only DREAM of.
8:56
What's on Your Screen?
Рет қаралды 16 М.
Turn VIM into a full featured IDE with only one command
11:55
Dreams of Code
Рет қаралды 587 М.