This is my kind of guy. His eyes tell me he's wasted no more than 3 hours sleeping since birth.
@djvincon3 жыл бұрын
Pissed my pants lol
@rikkertkuklinski44103 жыл бұрын
he's an EXPERT at what he does, and i like it.
@rikkertkuklinski44103 жыл бұрын
@Badger anti R? Which programming language is that?
@aminechei85093 жыл бұрын
@@rikkertkuklinski4410 R is the language
@rikkertkuklinski44103 жыл бұрын
@@aminechei8509 just be carefull. Dont piss the guy off. He might hack you while you're taking a dump and staring into your phone ...
@nickopop772 жыл бұрын
I’ve watched a lot of technical training videos with 20 years in the industry. You do a great job explaining things included with real live demos! Thank you for sharing what you do! Helping others learn too. 🙌🏼
@jasonpitts83953 жыл бұрын
Dude where have you been? I was about to call 911 and report you as missing. Glad you are back.
@KangJangkrik3 жыл бұрын
Oh wow false alarm for 911 Good luck at trials bro
@kingseekerbackup30853 жыл бұрын
@@KangJangkrik It was a joke.
@KangJangkrik3 жыл бұрын
@@kingseekerbackup3085 I know
@sprBEAST2112 жыл бұрын
The grim reaper pulled him into a dimension between space and time, to see who would blink first in exchange for his soul. Cody clearly won 👏👏👏
@bitonic5892 жыл бұрын
@@sprBEAST211 lmao
@kevin_delaney Жыл бұрын
I shortened that alias and implemented it into all my servers immediately (in my home) because it is simple and brilliant. I know them anyway because they are static, but I love the simplicity of it.
@sebastiansimon75573 жыл бұрын
You didn’t need the `echo $(`…`)` at the end, you just needed to escape the `$` so it doesn’t get expanded in the string: `alias ipaddress="ifconfig | grep broadcast | awk '{print \$2}'"`.
@RajivBandaru2 жыл бұрын
Thanks for this tip. It is more short and useful.
@DavidConnerCodeaholic6 ай бұрын
Phew I’m glad I’m not the only one that caught this. 😅😅
@DavidConnerCodeaholic6 ай бұрын
Fortunately for the civilized jq users among us, there is now “ip -json addr show | jq …” No more ifconfig (I guess? Honestly I never got the ip tools memo, so this has been very confusing for me)
@NaNa-cq8ck20 күн бұрын
I don't understand the concept of 'escaping'.. why did it work without escaping before aliasing?
@Alex-uc3ye3 жыл бұрын
Writing bash scripts has saved me thousands of hours over the years. Thank you for the video, this is incredibly useful.
@charlesmagno282 жыл бұрын
any real world sample you can share? thanks
@bald_agent_smith7 ай бұрын
@@charlesmagno28I got the same situation. For example - it really helps handle server apps, particularly deploy updates (or configs, patches), do system tasks
@rodrigito783 жыл бұрын
Nice bash intro. Half the battle when writing bash is knowing which command and arguments (flags) to pass to it; # hostname -I Returns the system primary IP address. Type hostname --help for details. Of course, I understand the exercise was to demonstrate pipping capabilities of bash. But the less pipping the faster your script will run. Also, this is much better than without the curly brackets. # echo "${STRING}" Excellent job.
@codygaudet80713 жыл бұрын
You guys are reading my mind! This is EXACTLY the video I was looking for. This video is gold. More like this.
@sachinmaurya32593 жыл бұрын
this is what i was gonna type in comment .....lol
@jpablosaavedrag3 жыл бұрын
@@sachinmaurya3259 I was going to type this too haha
@jpablosaavedrag3 жыл бұрын
@@dawidsadzak8137 sad u.u but great they made this video
@codygaudet80713 жыл бұрын
@@dawidsadzak8137Way to devalue for the video for others my guy. If you don't get excited about this, you're in the wrong place.
@jpablosaavedrag3 жыл бұрын
@@dawidsadzak8137 True. I've seen a few. But it was a nice coincidence to watch this video today. I know how the world works, still, i think it's a great short video about things you can do with bash scripting.
@novikovPrinciple3 жыл бұрын
Intermediate Tip: Use "man bash" to learn the semantic differences of: "&" (ampersand), "&&" (double ampersand), "|" (bar), and ";" (semi-colon). Most of my aliased commands use these punctuations, with one being "firefox & discord &" and another being "git fetch ; git status ;". GL, HF
@RicondaRacing3 жыл бұрын
Studying for my Linux+, this is gold
@jonyboi213 жыл бұрын
This guy explains it better than my professor did last week
@cyberrock90183 жыл бұрын
Are you taking computer science? Or IT
@bachokiro28663 жыл бұрын
Lmaoo thx I will never go to university
@arghosinha14243 жыл бұрын
I feel thee!!
@Rahul-lg1nw3 жыл бұрын
Mine tooooo😅
@helloMoto-k23 жыл бұрын
@@cyberrock9018 which are you in?
@user-hy2ry3if8h3 жыл бұрын
Great video. Exactly what a bash nab (me) needs to start up, see how to make a basic one then build on it, then add more and more and bit of polish ... brilliant.
@AmbushEveryone2 жыл бұрын
just getting started with Linux Mint on a VM. This video just taught me so much. thank you :)
@mojo33182 жыл бұрын
My dad had me watch this video for a class I'm going to take. This looks interesting. I like coding.
@garcand3 жыл бұрын
Just what I needed. I was literally just thinking about this! Thumbs up
@whitedaniel533 жыл бұрын
Same bro, thought the algorithms recent update was to read my mind xD
@AstroDenny3 жыл бұрын
Cool video- There is a lot of content like this on youtube but your style makes this easy to ingest for beginners. Couple if things though- You don't have to have .sh at the end of it and it you're going to run it with `bash ` you don't need the shebang either. Also, why did you have to fuzz the ifconfig command? I hope you continue this series- bash offers some much more advanced capabilities.
@1ukastesar Жыл бұрын
In the case of shebang, it's better to use `/usr/bin/env bash` instead of the exact shell location so it can be ram on different machines without changing a single line.
@zeta_eclipse Жыл бұрын
thank you :D
@zuberkariye2299 Жыл бұрын
thats neat and smart tip, if i was to write malware on my linux machine and wanted to transfer to a remote machine somewhere else that might be using different shell. It could in cases like that then
@karlostj46839 ай бұрын
It's fascinating that Mr. Kinzie explains that you need a "Ubuntu or Kali Linux system, really any Linux system" and then proceeds to create and run bash scripts on a macOS machine without mentioning that macOS does bash as well.
@Wegottohustlehard6 ай бұрын
hey,,can you plz tell what is he using to type that script..cause if iuse vscode i amd not the sam eoutput.thank you!
@karlostj46836 ай бұрын
@@Wegottohustlehard VSCode is a better editor IMHO but may be more complicated and sometimes simpler is better. Not sure why you're having trouble getting VSCode to work with his examples. I did just try the first script he typed in using VSCode instead of nano, and it works just fine.
@ramgopalvarma59493 жыл бұрын
Thank you for showing the error you ran into and the work arounds in the video.
@pcampbell-edu85083 жыл бұрын
Good habits put in a "header" with the date, your name and purpose of the script. Also keep upper case vars for env vars. ^^^ being kind to your future self
@Ben123123123 жыл бұрын
“Oops this isn’t python” hahah
@DavidLindes2 жыл бұрын
Thanks for sharing. A minor correction, re 2:17 - the .sh extension is not actually necessary. And just a note re 12:55, while some folks do call those "curly brackets", a less-confusing name for them would be "braces" -- { and } -- whereas "brackets" (or "square brackets") would be [ and ].
@jackfletch20012 жыл бұрын
Holy crap, I'm shocked I actually know almost all of this. I was genuinely nervous thinking I forgot a lot of this stuff.
@danlule1 Жыл бұрын
Thanks a lot, this is very well explained. It is the best explanation I have come across unlike many scripting/programming videos where the narrator often spends a lot of time even hours talking to themselves in vain because they are so badly explained.
@oxycodin22532 жыл бұрын
I taught my self this exact thing for batch scripting, time to learn bash!
@GeneralBlorp3 жыл бұрын
Bash was my entry point into coding! I just wanted to save time on repetitive tasks and chill more while at work; upside was that I learned I could annoy my supervisor by being such a TryHard.
@pianochannel1003 жыл бұрын
See but now they'll just give you more work if you prove yourself to be so efficient.
@justinc47823 жыл бұрын
@@pianochannel100 yes if you ever make these kind of tweaks keep it to yourself and dont brag about it! :)
@derpoblizist90762 жыл бұрын
@@justinc4782 it depends where you want to go, to have a cushiony job with few working hours, then just quietly do your part. If you want to be more successful and have a job that recognizes this effort, then ask for more work.
@wasssuuuppp2 жыл бұрын
Any book recommendations to learn it more advanced?
@chffguy Жыл бұрын
Been trying to execute a bash file forever! First resource that actually helped!
@druzod14963 жыл бұрын
I love your videos, can't thank you enough for what you do out here, and thanks for taking the time to "give us" this knowledge. Keep. Up the good work!
@charbelalam26482 жыл бұрын
He stares the information into my soul.
@AadilAnsari-ee3ds Жыл бұрын
Amazing. Actually the advance commands was awesome
@zexsen853 жыл бұрын
woooow, Vibrasphere - Sweet september music on the beging.... I am delighted... :)
@pianochannel1003 жыл бұрын
The no-blink guy is back!
@jaeger8093 жыл бұрын
Lol
@OmarImrharn Жыл бұрын
I ENJOY your helpful interventions and your professional knowlege. TANK'S TOO MUCH.
@Neodeejay05003 жыл бұрын
thanks from France!! I can't wait for the next video about bash scripting ! :)
@The_Digital_Samurai3 жыл бұрын
Bash scripting in the new Windows Terminal is very useful.
@tamirmaidani3 жыл бұрын
Amaizing ,i did this tutorial on termux(android) , works like magic! Thanx alot!
@cryptolicious37383 жыл бұрын
Argumentative bash script! hilarious :D that cracked me up bro
@worldboy9684 Жыл бұрын
Nice trick using a subprocess in an alias! Thanks
@dogbyte78752 жыл бұрын
Hey Kody, Thank you for your time and for your video
@Sourpusscandy3 жыл бұрын
Here’s what I’d like, Press the on button, boots to the login in screen. Computer says: who’s there? I answer with my name, Booting finishes, logged in.
@justinc47823 жыл бұрын
boot it into a tty by configuring grub. make your terminal run your little program when it loads use espeak to say "whos there" use the read command to ask for your name and get input, if, else, string contains to check for proper input, then boot into your graphical interface
@Sourpusscandy3 жыл бұрын
@@justinc4782 OK cool thanks!
@ashpakpinjari92143 жыл бұрын
Please continue this bash series.
@Clean_Slate3 жыл бұрын
Even though it's quite a simple quide, it's great! Thank you!
@benjamindreyer98843 жыл бұрын
Me thinking about something* One day later this dude who never blinks says: “hmm maybe i should make a video about that”
@kuldeepsingh29833 жыл бұрын
I was looking exactly for this. Very nice content.
@lollubrick3 жыл бұрын
I was going to comment to bash you for using nano but then I realized that I started doing anything on the *nix command line using nano instead of vi so I can't really say stuff; but vi is the best thing to learn.
@jpdominator3 жыл бұрын
I wouldn’t recommend using aliases like that. Make them little scripts. Aliases are part of bash expansion. Using grep with your alias… womp womp. Gotta single tick it. Aliases for obscure references. Scripts for other stuff, not piped commands.
@jeremymesloh19813 жыл бұрын
You could also do ifconfig | awk '/broadcast/ {print $2}' which would let awk grep and parse column.
@analactica3 жыл бұрын
Yeah that's definitely WAAAAY ahead my level atm , i didn't understand a thing , hopefully within a year I would 🤣🤦🏻♂️
@rodrigito783 жыл бұрын
# hostname -I (uppercase i)
@analactica3 жыл бұрын
@Learn Linux im starting to get the idea actually , my issue is the way i learn , unlike most people i need the bigger picture first , then the break down , not the other way around , sooo ya lol
@diegoleon11443 жыл бұрын
This guy teach like a master.
@krotizmultika3 жыл бұрын
"belive"... Great video, as always, though.
@HikikomoriDev3 жыл бұрын
A lot of power to the user. Very useful.
@ggsap3 жыл бұрын
Actually to find out the shell you are currently using you need to execute which $SHELL since most of the time you want your current shell to interpret your script
@ruszomalkuko3 жыл бұрын
That's sweet! You can put target IP in $IP and bash scripting enumeration easily now
@seratonyn3 жыл бұрын
Nice~♡ dig the first ifconfig 🤣
@vikramnanda2833 Жыл бұрын
Thanks for the video Please do make more videos for daily task automation
@BRBTechTalk2 жыл бұрын
Thank God you did not use "Hello World". I have created scripts before and I understand them but this was helpful for other variables I have not used.
@BurningtunaDC3 жыл бұрын
"Kody"? Jackie is the punk. Thanks for shooting and sharing such a great tutorial.
@joebonsaipoland3 жыл бұрын
Just like MS batch files but more powerful. Oh now there’s powershell .
@Romanslost3 жыл бұрын
Great timing 😁
@Anandhpt3 жыл бұрын
Last task was awesome..thnx man
@albertsnow71112 жыл бұрын
hello . 0:40 It's get my attention that black blanket on the wall. The blanket surface is like the equipment on the voice lab to eliminate external sound effect. Am I right?
@mathematicalninja27563 жыл бұрын
I swear this is what I wanted
@MrGFYne13373573 жыл бұрын
alright, this is more like it. let's be real, a lot of n00bs need to be learning stuff like this and not be so concerned about being the next best h4x0r. Good job Null Byte. /usr/share/thumbs.up
@brunoh60963 жыл бұрын
?
@zuberkariye22993 жыл бұрын
?
@thengakola62173 жыл бұрын
?
@moth50053 жыл бұрын
sick video , the alias thing is really cool.
@gedeonducloitre-delavarenn81063 жыл бұрын
From man bash: For almost every purpose, aliases are superseded by shell functions. So no, aliases are not cool (apart maybe for just one command, but it gets crazy when you want to put more than one command with quotes; and also they can't handle arguments). Functions are cool!
@tusharmotka15833 жыл бұрын
Need more parts of it. 😍
@lxtwin2 жыл бұрын
To make a script portable say RHEL 6, 7, 8 and 9 you can use #!/usr/bin/env bash instead of #!/bin/bash
@vDungeon3 жыл бұрын
Use bash, sh, perl etc ONLY in cases when you don’t pass arguments to the script and there is no any “if” like statements instead of checks for a command return code. You will be happy and other people who will work with your code base - too.
@michallasan3695 Жыл бұрын
Using bash is good if you execute many system commands, or else your program will spend much time waiting for system.
@smithwill9952 Жыл бұрын
Industrious intelligent geek. Awesome!
@surajmishra56613 жыл бұрын
Can you make a script for making post on social media as planed per user and on given time
@vk-chinni3 жыл бұрын
@Null Byte what that "Codes" book behind you?
@martin53682 жыл бұрын
Whats the difference between vi and nano
@tommyselbe1999 Жыл бұрын
Remember: **Syntax is your wand**, and every bug is a riddle waiting to be solved. May your journey be filled with wonder and your code compile without tantrums.
@skunkhead20073 жыл бұрын
like the lgos stickers on laptop,any chance you can show us how to getinto v bullitin forums with out wireshark and being logged in...or how to get Ip from same boards not for spamming ...... the forums have some high end elite deepstate players ones a NATO person.
@pavithraprajwal38383 жыл бұрын
Sir i want a program or software that when i enter 'enter' button on keyboard that automatically enter tab 2 times & enter 2 in monitor can u plz help mee
@ondregonzalez3 жыл бұрын
Awesome presentation! Thanks for the clarification.
@maurolimaok Жыл бұрын
I've been searching for a tutorial to make my terminal look like this, old green monitor, for a long time. Do you have any tutorial for that? I'm a complete newbie here in Brazil, learning Linux and Terminal prior to learn coding itself. Thanks for the video.
@temudjin11553 жыл бұрын
Hi and thank you. You should make a complete serie on that
@Jose_T1312 жыл бұрын
Excellent video brother
@soupedenuit2 жыл бұрын
Great video, but I gotta ask: are you using a hammer to type?
@sushiltiwari2743 жыл бұрын
If I want to simulate enter key what will be command. In other words I just want to send enter key after some command automatically what could be command for this
@chitownbob97142 жыл бұрын
"Paranoids...HOW DARE YOU!" I love that sticker!
@douglawson89372 жыл бұрын
a bit confused @8:53 with "read name". If name isn't defined as a variable yet, how is it reading it as the only reference to "name" previously is in the string?
@michallasan3695 Жыл бұрын
In bash, all variables are string, no need to declare, the default value being empty.
@jpedithe21712 жыл бұрын
Hello , très interessant ce tuto de découverte . J'ai apprécié vos explications et vous dis un grand merci pour ce partage .
@imrharnomar90992 жыл бұрын
I enjoy your support. your work is very benefit. TANK'S.
@cortisolblue22082 жыл бұрын
Was the $2 in your final script grabbed from a premade bash script? confused where that came from.
@christophmuller77792 жыл бұрын
If you are not an admin that works with bash scripting everyday, i would prefer to recommend to use python for automating scripting. You won't look up all of these exceptions of bash every 1-2 months and python is much more intuitive if you need programming control structures. Especially if you have to evaluate/manipulate/forwarding of argument lists from one process to another process. We have ran into this issues every half year in our company. Usually the scripts are simple at the beginning (where bash is completely fine), but they will grow and got more complex. In such condition we always regret it to not implement them directly in python.
@michallasan3695 Жыл бұрын
Python is slow, Chads use bash and c++. Chads can handle complexity. You can write bugs in Python, too.
@frantiseksmrha9922 жыл бұрын
Thanks man, you helped me a lot. I appreciate your work.
@yusufmeer79292 жыл бұрын
How can I open an application using a bash file ? like how can I open Multiple profiles of chromium using the bash file ??
@starkarabil92602 жыл бұрын
I think I have very primitive question but I couldn't find the answer until now. The question is I have files created via pipeline in gitlab. I can see them with git bash command like ls but when I click on that directory the files are not there. How can I make those files visible on browser in gitlab?
@Zimbob24242 жыл бұрын
It doesn't stay or save to the system, another words I set it up to watch my cpu temps, " watch -n 2 sensors" which I run whenever my pc is on, so I wanted to type "tmp" it does work but when I open a new terminal it doesn't, so really what is the point, I understand that I'm just learning bash script, so this is a Question, not a sarcastic remark. What I really want to learn is how to have bash scripts run on start up, thanks for the video
@412-3 жыл бұрын
Hello friends, do you want to check devices outside the network?
@theazza3 жыл бұрын
Thanks dude, great description.
@VulcanOnWheels Жыл бұрын
4:56 How did you change that 2 into a 3? 7:07 Why not just use "whoami" by itself?
@gdekerdanet11 ай бұрын
The man doesn’t blink😱
@EliteTechnicalSpecialists333 жыл бұрын
Great work man 😀 love your videos 👍
@nickt4232 жыл бұрын
Can you have windows scheduler run a shell file as an admin? If so, how would you do that?
@ritvikdayal37353 жыл бұрын
A person talking to his code is a brother. 😍😍😍
@imagreatguy12502 жыл бұрын
This is good stuff mate 🧠👍
@tomigoe3763 жыл бұрын
Amazing video. Ty Nullbytes
@DennisGentry2 жыл бұрын
1:16 "You can always pick up a Raspberry Pi" lol
@EdwardVarner3 жыл бұрын
Why would I put a command (like whoami) into echo to get it to appear when I can just put whoami on a line in the script and it does the same thing?