Bash Scripting Basics Part 1

  Рет қаралды 265,574

Jason Wertz

Jason Wertz

Күн бұрын

Пікірлер: 98
@2012Zyle
@2012Zyle 8 жыл бұрын
By far, the most direct and easiest to understand BASH tutorial I've seen. Thank you so much!!!!
@andrewlopez1233
@andrewlopez1233 6 жыл бұрын
this is the most helpful and thorough video about bash that i've seen so far, i am taking and introduction to unix/linux course and the professor is really boring and i hardly understand anything, but this video is just what i need, very clear understandable and detailed. I highly recommend it and i appreciate your hard work. Thank you so very much Jason, and keep making these helpful videos. Thanks again.
@stfudance5850
@stfudance5850 4 жыл бұрын
Very clear and detailed descriptions with definitions. Thank you!
@jackfrasiercomedy5942
@jackfrasiercomedy5942 8 жыл бұрын
Best explanation of basics ever! I've read books, watched vids, but This was the most accurate and throrough! Well Done!
@malluk4127
@malluk4127 5 жыл бұрын
Once you are in the Vi editor, hit 'i' on your keyboard to start typing. That's the insert mode. Once done typing, :wq Save the file and quit He should have shown this for people who are not familiar with Vi as an editor.
@sauliiit8898
@sauliiit8898 5 жыл бұрын
damn thanks dude i had problems with this ;dd
@robinhood3841
@robinhood3841 5 жыл бұрын
You forgot the Escape *once you done from the typing hit escape to allow you to do the next commands which is :wq
@keshavboodhun562
@keshavboodhun562 5 жыл бұрын
you can use nano instead, it's faster esc ctrl x y enter
@Typidica
@Typidica 4 жыл бұрын
@@robinhood3841 THANK YOU took quite a while to find that lmao
@hyperdragon1013
@hyperdragon1013 4 жыл бұрын
i'm using nano editor
@datag1199
@datag1199 4 жыл бұрын
Great video! Clear and to the point! Thank you for putting this together.
@FlavaBomb
@FlavaBomb 7 жыл бұрын
I don't always take the time to comment on videos, but thought I would for this one. Really usefull stuff... for me personally, you explained everything well and didn't go over things repeatedly, which is often the case in video tutorials where the 'teacher' is not all that proficient. I mearly wanted a refresher on the basics and maybe things I do without knowing my exactly. Thanks for sharing.
@Uneke
@Uneke 4 жыл бұрын
Thanks for this! The first one that actually breaks down things right from the beginning and doesn’t do the “hello world” line $(drives/me/crazy) 😂
@jefftokplo
@jefftokplo 9 жыл бұрын
Very good for a beginner like me. Keep up the good work
@simonholmes2477
@simonholmes2477 5 жыл бұрын
Awesome video, really well explained, thanks
@BeatsByFuller
@BeatsByFuller 2 жыл бұрын
Just got into IT about 6 months ago and my boss wants me to create a script to uninstall a program across a client. This was so helpful!! Thank you!
@rosya910
@rosya910 4 жыл бұрын
Great explanation of bashscript! thanks
@limitless1692
@limitless1692 4 жыл бұрын
Wow i used the Terminal for so long ... And now finaly i get it ... Thanks !
@cizzlen07
@cizzlen07 5 жыл бұрын
You sir are a true professional. Thank you greatly for this awesome piece of work. Consider teaching on an online platform, you'd be perfect for it!
@adampax
@adampax 4 жыл бұрын
so clear. thank-you!
@cnabisco
@cnabisco 9 жыл бұрын
Most helpful and well done video I found
@vonyp6018
@vonyp6018 3 жыл бұрын
Great explanation
@hakiinmohamud9852
@hakiinmohamud9852 9 жыл бұрын
Very good explanations!👌
@joshsavage8659
@joshsavage8659 7 жыл бұрын
Your Linux series is great!
@Sofia-wj6yo
@Sofia-wj6yo 4 жыл бұрын
This is excellent, thank you so so much!
@BlindPigBluesBand
@BlindPigBluesBand 4 жыл бұрын
Great video
@caitlingibbons2246
@caitlingibbons2246 3 жыл бұрын
The exclamation mark is part of history expansion in bash. You can avoid the backslash (escape) if you use single quotes or a modern version of BASH. Hopefully, this helps.
@justinhernandez4022
@justinhernandez4022 9 жыл бұрын
If you use the command with single quotes, you can finish the echo you wanted. Im sure you know that by now, but for those who dont, its: echo 'Hello!'
@darogajee3286
@darogajee3286 7 жыл бұрын
saved my day mann... good..
@bouncesystemofadown9092
@bouncesystemofadown9092 4 жыл бұрын
Superb!
@Darieee
@Darieee 7 жыл бұрын
Thanks man ! Awesome video
@TraceguyRune
@TraceguyRune 9 жыл бұрын
I agree with 15:26 Please, people, use { and } for your variable!
@hopkinscheddar1617
@hopkinscheddar1617 8 жыл бұрын
+TraceguyRune why
@reggiegermar7291
@reggiegermar7291 5 жыл бұрын
Its a matter of standardization and easy of use. Using curly brackets { and } would easily find/search that variable on a very long script with too much comments.
@bitelogger
@bitelogger 8 жыл бұрын
Dude Awesome Video!!!!!!!
@FitnessChaos
@FitnessChaos 5 жыл бұрын
very good video on scripting
@ammarm7
@ammarm7 9 жыл бұрын
Thanks so much man - really useful.
@rajasekhar9610
@rajasekhar9610 6 жыл бұрын
Hi....as you told at 8:20 single quotes doesn't have a variable expansion but double quotes has variable expansion that's why ! Not executed.
@christianpaul3651
@christianpaul3651 6 жыл бұрын
Nice tutorials !
@peteherrera1502
@peteherrera1502 8 жыл бұрын
Can you copy and paste the contents of your created .sh file above to the description area above so that we can copy it to our computer and play with it.
@unbendedurchin1821
@unbendedurchin1821 4 жыл бұрын
No
@arvindmohansk01
@arvindmohansk01 5 жыл бұрын
Please come up with ‘Bash Scripting Basic Part 4’
@Seattlefan77
@Seattlefan77 6 жыл бұрын
Why can't everybody speak like you. Enunciation, volume, not really monotone. Awesome vid and im only a few minutes in that I learned from another video from another great content creator but who jumps back and forth between material when youre confused "Oh I forgot to mention". And i'm "Oh i'm just having a nervous breakdown"
@Berghiker
@Berghiker 5 жыл бұрын
How do I make a new bash profile? Command not found on my mac.
@johnniegilkerson4724
@johnniegilkerson4724 6 жыл бұрын
how do you excape and save the file? @3:09
@meh5812
@meh5812 5 жыл бұрын
i think its :wq
@brenton393
@brenton393 6 жыл бұрын
really helpful!
@kaitsith3081
@kaitsith3081 9 жыл бұрын
and now all my updates run as one! :)
@robertpendergast2620
@robertpendergast2620 8 жыл бұрын
Well done. Thanks.
@thembelanimsongelwa1264
@thembelanimsongelwa1264 8 жыл бұрын
Really helpful thanks
@lokeshvangara2524
@lokeshvangara2524 2 жыл бұрын
hi are available can i ask something related to bash scripting
@audreydelgado1761
@audreydelgado1761 9 жыл бұрын
Thank you for the straight forward & useful info. :)
@DimitrovDime
@DimitrovDime 6 жыл бұрын
Thanks Richard Hendricks!
@CodingCommanders
@CodingCommanders 6 жыл бұрын
Jason is my son's name! Great tutorial!
@zozo-yy2gl
@zozo-yy2gl 4 жыл бұрын
Is your name jay ?
@deletd7368
@deletd7368 3 жыл бұрын
What happens when I try to make a variable like : history.sh #!/bin/bash HISTCONTROL=$(history) When I use ./history.sh it says permission denied, Why?
@AgrimITEducation
@AgrimITEducation 6 жыл бұрын
nice video ..
@rubym7223
@rubym7223 6 жыл бұрын
When I put any other word like "sl" , that shows the result of ls. What will I do?
@leixiao169
@leixiao169 4 жыл бұрын
thanks!
@rudyblender9330
@rudyblender9330 9 жыл бұрын
good job thx
@smssuper
@smssuper 11 жыл бұрын
thanks a lot man
@geremachek
@geremachek 6 жыл бұрын
echo -e "Hello!" works aswell
@DEI-HIRE
@DEI-HIRE 7 жыл бұрын
Pro Tip: If you have a link for your followers to go to, it's 100x easier to supply it in the Description Field vs putting it on the video screen for them to manually type out as if it were 1994
@bjflinn1
@bjflinn1 6 жыл бұрын
total linux noob here...this is the second video that has done something with vi and I cannot get mine to work like this. It won't let me add hash marks or press escape...so confused on this vi thing
@AssWhole-u6d
@AssWhole-u6d 6 жыл бұрын
Yeah, vi is not for beginners! Try using nano, let me know if that helps. Learning vi/vim is a class on its own. You may still want to watch a nano tutorial to learn the basics before doing this.
@malluk4127
@malluk4127 5 жыл бұрын
That's because Jason did not show how to 'Save' and 'Exit' out of Vi. It's not that hard to learn, but I just cannot understand how he skipped those.
@annapurnamohanty4961
@annapurnamohanty4961 7 жыл бұрын
Can you pleaae help how do i copy multiple files from one directory to another directory using shell script..i wany to copy 100different extension files from one path to another path in the same server.kindly help.thanks
@TraceguyRune
@TraceguyRune 9 жыл бұрын
Do you have advanced tutorials? I want to take my bashing to a whole new level
@shahrukhrahmankhan7860
@shahrukhrahmankhan7860 6 жыл бұрын
Thanks Friend! Script works on my machine...
@shubhamdelhi4817
@shubhamdelhi4817 5 жыл бұрын
can you make script i want i have to pay amount
@sn20
@sn20 9 жыл бұрын
who would not like this video??? 3 thumbs down???
@sagar35756
@sagar35756 9 жыл бұрын
he did not mention insert mode when writing the shell script, i.e we need to press 'i'. So had to figure out some other reference!. That may be one of the reason some ppl disliked it
@hectorcasiano7469
@hectorcasiano7469 6 жыл бұрын
Jason Jason cool cool !!!
@kostasmessinis2671
@kostasmessinis2671 7 жыл бұрын
does not work " .sh" what to do?
@MikeM-py2hq
@MikeM-py2hq 7 жыл бұрын
You mean it does not execute? Forgot to change permission perhaps, try chmod.
@randmorf
@randmorf 4 жыл бұрын
I had a similar (same?) problem where even after I did a "chmod 775 myscript.sh", the shell would not execute my script without the 'bash' command specified first. I then found that it would work if I added a "./" before the name of my script. So. I suspect the problem is that your current directory is not in the Linux search path (try: "echo $PATH" and look to see if it is or not). With Raspbian Linux, it is not, so you can use the following command to make your home directory part of the search path: export PATH=\$PATH:$(pwd) If you now "echo $PATH" it should show something like: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/home/pi Now you should be able to execute your shell script by just entering it's file name, assuming it is saved in your home directory (e.g. /home/pi on a Raspberry Pi).
@SupGhostly
@SupGhostly 7 жыл бұрын
Insert mode? How do you enter insert mode?
@sonicx7098
@sonicx7098 7 жыл бұрын
Eric i I, a A , s, r R
@johnniegilkerson4724
@johnniegilkerson4724 6 жыл бұрын
I can't type anything in. what is insert mode?
@johnniegilkerson4724
@johnniegilkerson4724 6 жыл бұрын
press i
@jasonworingen8431
@jasonworingen8431 6 жыл бұрын
Mr. Wertz is making the same mistake most teachers do, which is starting slow and then performing a "brain dump" in a very fast manor. This commonly assumes students will have a background in whatever is being explained. This is fine for an intermediate or advanced video, NOT a beginner level.
@poli2730
@poli2730 3 жыл бұрын
I wanted to cycle though the possibiliets whrn pressing TAB not displaying the again this dumb list
@AssWhole-u6d
@AssWhole-u6d 6 жыл бұрын
I prefer cmd on windows, this looks kinda cool though.
@hanx3926
@hanx3926 5 жыл бұрын
how to write the script? how to save? how to run? If you don't show these, this is not a video for beginner.....
@rodsmade
@rodsmade 3 жыл бұрын
fellow 42 pisciners/basecampers, unite!
@DocHallenstein
@DocHallenstein 8 жыл бұрын
Too fast for me as a beginner. Thanks.
@cemreacar8839
@cemreacar8839 4 жыл бұрын
Blog can be helpful for you ; www.cemreacar.com/blog
@hsaidinsan6345
@hsaidinsan6345 5 жыл бұрын
Increase your voice man!
Bash Scripting Basics Part 2
14:08
Jason Wertz
Рет қаралды 78 М.
Become a bash scripting pro - full course
36:00
CODE IS EVERYTHING
Рет қаралды 76 М.
OCCUPIED #shortssprintbrasil
0:37
Natan por Aí
Рет қаралды 131 МЛН
БАБУШКА ШАРИТ #shorts
0:16
Паша Осадчий
Рет қаралды 4,1 МЛН
BASH Environment | Aliases, Functions and Scripts
49:26
Joe Collins (EzeeLinux)
Рет қаралды 92 М.
100+ Linux Things you Need to Know
12:23
Fireship
Рет қаралды 1,5 МЛН
Introduction to Advanced Bash Usage - James Pannacciulli @ OSCON 2014
42:53
James Pannacciulli
Рет қаралды 133 М.
Is this the best OSINT tool out there?!
17:10
stuffy24
Рет қаралды 374 М.
A Beginner's Introduction to BASH Shell Scripting
44:24
Joe Collins (EzeeLinux)
Рет қаралды 292 М.
Linux for Data Engineers | البطريق العضاض يعظ
11:24:48
بالعربي Big Data
Рет қаралды 103 М.
Become a shell wizard in ~12 mins
12:25
CODE IS EVERYTHING
Рет қаралды 266 М.
Let's Write A Script! | How To Create BASH Scripts In Linux
49:45
Joe Collins (EzeeLinux)
Рет қаралды 26 М.
you need to learn BASH Scripting RIGHT NOW!! // EP 1
12:14
NetworkChuck
Рет қаралды 1 МЛН
OCCUPIED #shortssprintbrasil
0:37
Natan por Aí
Рет қаралды 131 МЛН