For those in a hurry! Till 6:13 he explains what is Shell Scripting and how it's done: In Windows, you create .bat files with a command on each line in the file so CMD executes one-by-one. In Linux, we don't use .bat but .sh, and also, we specify a Shebang so Linux knows what interpreter to use (the default is Bash) Till 7:45 he explains Variables (i.e x = "Text") and how to make Bash distinguish between letter 'x' and our Variable 'x' Till 8:49 he tells how we can prompt the user for input with command 'read'. Terminal pauses, until data is input. To display a specific message before the blinking cursor use 'read -p ["TEXT: "]'. (-p displays the "TEXT" you provide before it collects input.) To store the data input in a Variable write the name of the Variable at the end of the command: 'read -p ["TEXT: "] VAR'
@smitmangukiya3 жыл бұрын
Thanks
@stuffandymakes16483 жыл бұрын
Technically speaking, in Unix/Linux/macOS, the file extension on the file name of the script is irrelevant. People can be opinionated about using it, but it truly is only a convention. What makes your script file an executable script in Unix-like operating systems is setting the execute (x) permission on the file. Then, the shebang line (#!) tells the system what type of file it is. The first two characters (sometimes they are each 16-bit) or bytes are called the file signature or magic numbers. The shell is using the exec() system call, which uses the magic numbers to determine how to launch the file as a new process: Binary file (run the machine code inside, depending on the OS) or text file (launch an interpreter as a new process and pass it the text to interpret).
@realkarthiknair3 жыл бұрын
@@stuffandymakes1648 yep u dont even need an extension
@idk-jb7lx2 жыл бұрын
bash scripts are more similiar to powershell scripts than they are to batch files to be completely fair. sure you can use them like you would use batch files in Windows but they're way more powerful than that since they're actual programming scripts and not just a set of instructions.
@maindepth88302 жыл бұрын
Thank u
@icon458 Жыл бұрын
I have a test in 3 hours' time and this guy just explained a whole chapter with 98 pages in 32 minutes. Thanks, man keep the videos coming💝
@origamicaptain56644 жыл бұрын
I'm so happy that you aren't being condescending, but friendly as well. Clear, concise language. Much appreciated.
@cherrydrop70252 жыл бұрын
Revisiting for a great refreshah. I remember watching this at random when I started at a startup based in Boston... gave me the full MA experience. Love the accent.
@mikeigoe6 жыл бұрын
Bookmarked - use Linux all the time in a job I'm now 3 years into and never bothered to learn this stuff when moving over from WIndows, even though I swapped out cmd for git bash a few months back on all my PCs. I don't have time to watch your KZbin videos anymore - that MERN course is taking up all my free time :D - great course btw: you have a wonderful, natural teaching style.
@priyakdey78915 жыл бұрын
Dude is the MERN from Traversy ? which one and where it is ?
@omarislearning33295 жыл бұрын
honest question, did you come back to it after you bookmarked it or nah? i am just wondering since i seem to never do when i bookmark stuff.
@insideTheMirror_5 жыл бұрын
plus he's a hottie ;)
@navjotsingh22514 жыл бұрын
omarislearning I do come back to things I book mark. I’ve book marked a python cheat sheet, bash cheat sheet, calculus book and a data structures/algorithms website. I’m constantly going back to them sites, so having them bookmarked is helpful.
@madferit19876 жыл бұрын
Have I ever told you I love you man? Just what I needed
@naqeebghazi9412 Жыл бұрын
One of the best beginner videos for shell scripting. Doesnt over-explain. Great stuff!
@omarsuriel11123 жыл бұрын
I can’t think of a more deserving person for all the success he’s got
@NikhilMoreBCSE3 жыл бұрын
This is the best tutorial for bash scripting covered in such a short time. You really saved me
@amirnazari64274 жыл бұрын
One of the best shell scripting videos! Coherent, Informative, right into the point, and time-saving.
@fxstreamer2384 жыл бұрын
please tell me you know the WHILE loops in other programing languages right? and how on earth this while loop that he just read and wrote from his script doesnt need any explanation of what -r is? and what the condition of the while loop is? how is this choherent and time saving? I assume you are a programmer like myself
@asuezeigwe9381 Жыл бұрын
I was so lost watching other content on this topic as I'm a newbie You just saved me
@rokzabukovec46856 жыл бұрын
Just in time Brad! I got a paper due on sunday on bash scripting :)
@brianadams28626 жыл бұрын
Lucky you were
@metdelta15 жыл бұрын
@@brianadams2862 Did we meet in The Summer of 69??
@brianadams28625 жыл бұрын
@@metdelta1 Nop
@coreyaudet96563 жыл бұрын
There is so much Love and appreciation here, I was just poking around and was overcome with positivity.(I was losing all hope for humanity just prior) I'll be camping out here until I can reach an understanding of Bash without BashING something in the process. Thank you all for making it possible to enjoy learning and by supporting one another, we can all get the skills it takes to BASH Bash!
@Dr.Berrel2 жыл бұрын
Just listening to this man speak calms me down. You get my like sir.
@manish-mk6 жыл бұрын
It's always so interesting to learn from you. You are great teacher. I have huge respect for you
@@yersonlasso9754 file extensions are not really required much outside of Windows
@adefioyes56922 жыл бұрын
Nailed it fr
@CYB3RC0RP2 жыл бұрын
Probably the best video I've found on the subject so far.
@ericedlund31403 жыл бұрын
You just saved me a $20 course online, thank you.
@fellipedemoraes37483 жыл бұрын
This is by far the most distinct programming language I have come across and that's a comparison with PHP, JavaScript, C++, and Java.
@anshajlogan10403 жыл бұрын
You save my system design lab The teacher take four months for this You nailed it on 30 mins🤪🎉❤️
@aprilmintacpineda27136 жыл бұрын
Thanks Brad, I really appreciate you doing these tutorials. I think KZbin should have more people like you.
@helaolange3 жыл бұрын
Uploaded 3 years ago... Brad, you are the best🐐
@GoonCity7774 жыл бұрын
I don't want to be an expert on this, but just know enough to be aware. This did it!!
@edilsonrj6 жыл бұрын
Waiting for the intermediate and the advanced one! AMAZING!
@aisaacbruno96604 жыл бұрын
it's refreshing to watch a 30 min video that I actually wanna watch, thanks for this video, I'll have a job interview about shell today :)
@rambo97694 жыл бұрын
This tutorial is timeless. Wonderful and relevant after 2 years too.
@abdullahahmed84682 жыл бұрын
i have loved this Crash Course video because it has rich content with real case examples
@yesoreyeram6 жыл бұрын
OMG.. the quality and the content diversity of the channel getting improved in every video. Hats off to you.
@sochisic6 жыл бұрын
Best dev canal ever! Hello from Russia!
@karamveersinghrathore6218 Жыл бұрын
Thanks Man for this video, I have my lab exam in 3 hours and this video helped me alot
@ruchiradhar15894 жыл бұрын
This is honestly one of the best Shell Scripting tutorials out here. Thank you so much for this amazing video, it really helped me a lot!
@foodums4 жыл бұрын
Every time I click on Brad's videos I like it before the intro even plays.. Here in 2020
@kirankumarb21903 жыл бұрын
For a Non CS background software Engineer like me. You are just GOD bro. Thanks a lot ❤️
@charlescai2363 жыл бұрын
thanks Brad. This is really a short and sweet piece of video and one of my best used half an hour.
@lee_johnson3 жыл бұрын
Your teaching style is awesome man
@ReliableRandy3 жыл бұрын
"I let my accent slip out a little too much there" HAHAH love it 19:57
@johnlaurenceocong47543 жыл бұрын
Only For iOS?
@Anony5846 жыл бұрын
The tutorial that teaches what Udacity couldn't break down properly. Thank you!
@indestructible2472 жыл бұрын
that's why you actually try to look up free sources for learning online before just throwing your money at shit
@Nicholas-up4tw3 жыл бұрын
Thanks dude! I really appreciate this, especially as a recent cs grad where they make you do at least a half dozen different languages including some less popular ones... I'm just like why in the world did the four years of curriculum never include a single class period to explain bash syntax? Kinda nuts to me. But yeah, thank you!
@leerobinson19842 жыл бұрын
I did bash scripting in my cs degree but I cant remember any of it! :-)
@dineshkumarthirugnanam13013 жыл бұрын
You just made things simple. Not confusing by putting too much into it. Got it what's needed.👍
@masihsadri5 жыл бұрын
Thank you, Brad. You are definitely the best teacher in the world.
@altairibn-laahad84424 жыл бұрын
2:54 Not anymore, as of 10.15 (Catalina) macOS uses zsh as its default shell. bash executable is still present on the system though and your scripts will run just fine as long as you include the shebang (#!/bin/bash) as their first line.
@mdullash21164 жыл бұрын
i don't feel bored any time of learning from your channel...
@nafeemhaque33576 жыл бұрын
You are awesome dude ! Thanks for making the world a lot easier.
@leosmilesu24 жыл бұрын
God bless you, Brad@Traversy Media. Thank you.
@JimHenderson19 Жыл бұрын
Great content! I like the pace, just right. Keeps you interested without overwhelming. Easy to follow along. I subscribed!
@robertofolikwei236 жыл бұрын
just in time, towards my preparation towards my eCPPT certification.....simple and understanding ...big thanx
@Ahmed-sv9sy4 жыл бұрын
Amazing video man ! I learnt so much from you by following along on my computer and I can definitely say without a doubt that I'm more comfortable with bash scripting basics after I watched your video. Thanks for the educational content Keep up the good work !
@technofool36 жыл бұрын
Thank you for taking the time to put this together. I learned so much from this, I really appreciate everything you put out.
@CreativeJE4 жыл бұрын
brad your tutorials are simple straightforward thanks for making everyone's life easier thank you
@OsMoreno6 жыл бұрын
Thank you Brad! Some recommendations to shell scripting learners: * writing "set -e" before other instructions, stops the script in case of any command error. It is pretty useful specially when learning shell scripting. * also I would recommend use a sandbox for learning, shell script could be destructive (very).
@vishnusk70172 жыл бұрын
This is a very useful tutorial.... and ur presentation skill is awesome. Thanks
@sfutrell23393 жыл бұрын
Thank you! I am cramming for my Linux +exam and this helps a lot!
@EddyVinck6 жыл бұрын
I recently learned how to setup my own VPS with NGINX and Node on it so this couldn't have better timing, will watch it soon. Thanks Brad.
@KyleLombardo82 жыл бұрын
Wow. The renaming file hack at 24:24 is life changing.
@demetter79363 жыл бұрын
My name is also Brad so for a split second it freaked me the hell out when you said it.
@brianrheault30863 жыл бұрын
Awesome video (I'm definitely a beginner). Thanks for the info, and great to hear another New England-er. I'm originally from Mass and I can hear the accent VERY clrearly.
@simonkalu6 жыл бұрын
Brad, man on fire... keep radiating - we shall soon hit 1m subs.
@aylliumrin78616 жыл бұрын
Awesome vid. I like the idea of the channel branching out. There is so much stuff out there and it keeps things fresh.
@volder19954 жыл бұрын
I hope this helps me pass my exams at Shell,great tutorial!
@jeremysmith545654 жыл бұрын
Fun little tidbit I like to think is BASH due to it being named after Bourne Again SHell is essentially what it means, was a project by a man with the surname Bourne who essentially abandoned the project but later took it back up himself or someone else or some other people and completed it, is the default in a lot of Linux distros :)
@Christian-lg7uu6 жыл бұрын
I like this keep continuing doing this type of tutorial even if there are not related to web.
@daoviettu23342 жыл бұрын
Very practical! Every basics are all here!
@ssaran25 жыл бұрын
Thanks Brad. I was always scared of learning bash scripting until I watched your video. Subscribed :)
@Jerry-fy2gc2 жыл бұрын
Thanks buddy. It's short video but much tought must of basics in very clear way. Thanks a lot
@marklambert27774 жыл бұрын
In most of these beginner tutorials, I never see grep. That was one of the first commands I extensively used and is quite a simple one to explain.
@zacharymiles43005 жыл бұрын
Great video. Your teaching is very easy to follow.
@sreemathir51943 жыл бұрын
The BEST tutorial for beginners! Thank you!!
@daemonous3 жыл бұрын
19:55 made me smile, overall great crash course!
@GurcharanDhillon3 жыл бұрын
Thank You Sir, the way you explain is awesome. It directly goes into mind. I learnt a lot from your tutorials. Much respect.
@alokmeher4073 жыл бұрын
Really crash course for bash beginners ...Must go for a 30 min valuable watch...
@300dionysius4 жыл бұрын
I really like this non-Indian tutorial. Thanks!
@notgate26246 жыл бұрын
This was great and I'm happy with you changing up the material a bit. I've been wanting to learn more about System Administration and IT. I know this stuff is basic but it's still a good intro.
@kevinzhang89746 жыл бұрын
simple and very practical .... you have covered top common syntax .... thank you!
@fayfaytu2 жыл бұрын
This is really a great video! It has everything for a beginner to know. Concise and useful!
@alphaomega44343 жыл бұрын
This was really good, I appreciate it you branching out
@Mohamed-uf5jh4 жыл бұрын
Great Job , easy to follow and very helpful
@ubaidmansuri17255 жыл бұрын
Bruh That helped me Alot. I am thankful to you as it helped at last night preparation for exams :)
@thinkbig59362 жыл бұрын
if you are my teacher in my school and college days. i will be in a different position. thanks for sharing knowledge in an understandable way.
@heikokraemer27354 жыл бұрын
On point, very compact video. Thanks a lot for this great source for a start into bash scripting!
@omerkaraca18256 жыл бұрын
You are really great as usual !! I immediately liked the video. Fortunately, you are here. Thank you very much for eveything..
@zapazap3 жыл бұрын
I had been taught that UPPER_CASE variable names should be reserved for system use. Although I do in fact use upper case for variables I export, I always prefix these with some variant of 'BCH_' (my initials) to avoid name clashes.
@medaminemahmoud72453 жыл бұрын
in 27:29 there is actually a bug; the last line will not be displayed, to allow the output of the incomplete line and fix the last line problem you should try this code: #!/bin/bash LINE=0 FILE_PATH="./new-1.txt" # Add IFS= option before read command to prevent leading/trailing whitespace from being trimmed # The extra -n test will detect this so that the loop body is allowed to output the incomplete line. while IFS= read -r CURRENT_LINE || [ -n "$CURRENT_LINE" ]; do echo "$LINE:$CURRENT_LINE" ((LINE += 1)) done
@deadscenerecords6 жыл бұрын
This provided a couple options and commands I haven't used yet. Thank you!
@noceur91026 жыл бұрын
brad switchin' it up. i like it. :))
@talkohavy2 жыл бұрын
13:06 Small small fix. line 49, the echo should actually say "$NUM1 is less than or equal to $NUM2"
@ReflectTheEmotions3 жыл бұрын
You know this video is a beautiful, educational learning course when its been out for 2 nearly 3 years and only has 55 dislikes compared to that of 6.8K likes, I finally found my shell script beginners course
@BobTrieste3 жыл бұрын
Brad all of your videos are great ! Thank you
@rayray7326 жыл бұрын
Hi Brad, Awesome tutorials, I know a bit of bash scripting b4, this is great. I'm a Nigerian. Your free videos and courses I have bought has really helped me alot in my career has a web developer. Please, I would like you to do a video on vanilla PHP email verification and forgot password system. Here in my country PHP developers are highly paid. I really love your self help videos, Thanks in advance.
@dataslid2 жыл бұрын
Highly paid 😂😂😂
@benardadhinga87145 жыл бұрын
What a genius! A natural!!
@X19-x5f2 жыл бұрын
Great video, thanks for posting. As usual, lots of good info to get me started and point me in the direction to advance. Thanks man!
@Me4ok2 жыл бұрын
Hello Brad, Thank you very much for extremely clear explanations and clarifications ... Very very well done ;) ... Have a great day and Thanks once more time :) ...
@tibettenballs49622 жыл бұрын
his name is mike. all of their name is mike. mike this mike that. that or frank.
@joeldcanfield_spinhead3 жыл бұрын
It was quite the exercise reproducing all this in zsh. I don't feel a need to resurrect bash on my Mac, but I do spend time at the command line so I might as well brush up on my antiquated skills.
@snxexwinterx55705 жыл бұрын
Thanks for making this man..been looking for a good beginner bash tutorial.
@emmanuelmnzava89664 жыл бұрын
This will help me automate lots of my work
@jackjax56065 жыл бұрын
Good stuff Brad...You always know some good content is coming up once that transition music starts. And you never dissapoint. Big up on the new content, i've always enjoyed your tutorials. And i cant wait for the JAVA stuff...lookin forward to it
@ericjaniak10153 жыл бұрын
Much respect to you, you give me a lot of useful tech.
@jasonwitt956 жыл бұрын
Shell Scripts! I love shell scripts. You can do all types of neat things with them.
@fredhair5 жыл бұрын
Number sign? Money sign? That terminology is some next level wordery. Hash/pound (I prefer hash as pound could be confused with £) and dollar. Just a little issue and probably me being overly pedantic! Good video nevertheless :)
@nacdan64516 жыл бұрын
Great video as always. I'd love to see some C++ tutorials!
@shreyazore43842 жыл бұрын
Very awesome video to learn basic. Really didn't get bored throughout the video, and its up to the mark. Perfection at its best👌👌👍Thanks alot Brad !😃