Bash exit codes & command chaining | #1 Practical Bash

  Рет қаралды 27,941

kubucation

kubucation

5 жыл бұрын

Ever wondered what exit code 0 or exit code 255 means in the terminal? This first video of the brand new "Practical Bash Scripting" series will teach you all you need to know about exit codes. Having understood bash exit codes you can make use of command chaining using the && and || operator. And - as with every Practical Bash video - I'll show you a real-life example of where this comes in handy!

Пікірлер: 23
@kanchen3027
@kanchen3027 4 жыл бұрын
love it ! very clear YT, I was led from your "how Https work? ", the best ssl/https YT so far? thanks a lot ! keep going !
@thomasloven
@thomasloven 4 жыл бұрын
For the off chance that anyone reads the comments; the reason 0 means success and anything else means failure is because generally things can work in One Way, but not work in Infinitely Many Ways - and it may be interesting to know which one it is this time.
@kubucation
@kubucation 4 жыл бұрын
Great comment. I read it, I’m sure others will too :-)
@nctram
@nctram 4 жыл бұрын
The most underrated YT channel. You are doing a great job, Sir. Thank you so much.
@kubucation
@kubucation 4 жыл бұрын
Thanks a lot. The Channel is still tiny, yes ... but it’s also growing. Interesting times ahead.
@vamshikrishnab1029
@vamshikrishnab1029 3 жыл бұрын
lots of claps to you man ... Keep going and yes keep it short and sweet
@anushams4196
@anushams4196 2 жыл бұрын
neat explanation, helpful, thanks!!
@108ahah
@108ahah 3 жыл бұрын
i like your videos.
@NavyaTeja7
@NavyaTeja7 5 жыл бұрын
You just "KISS"ed (Kept It Short and Sweet) it.....😉
@kubucation
@kubucation 5 жыл бұрын
Thanks! This series will have plenty of short videos, usually between 5 and 8 minutes that focus on bash or terminal related topics. In the beginning there are some essentials of course, but who knows where the journey will lead us to. So far I have planned the first 5 videos, but I don't think there's an upper limit to this series.
@MrZasimovich
@MrZasimovich 4 жыл бұрын
Very usefull ternary operator bash like this # test -f text.txt && cat text.txt || echo "there is no text.txt"
@theowl2
@theowl2 3 жыл бұрын
Thanks ❤️
@ianhale5482
@ianhale5482 4 жыл бұрын
Holla holla get dolla question mark Great video thank you
@boodiay
@boodiay 4 жыл бұрын
How do i exit bash?
@amoh96
@amoh96 Жыл бұрын
is this coruse bash for noob ? can i study this in 2022 ?
@KrishnaDasPC
@KrishnaDasPC 4 жыл бұрын
Is bash development dead?
@kubucation
@kubucation 4 жыл бұрын
How do you mean that? Why would it be dead?
@KrishnaDasPC
@KrishnaDasPC 4 жыл бұрын
@@kubucation I mean the development of bash. New features. Like php 5 to 7 now. I use bash for backup scripts but couldn't find inbuilt support for associative arrays json and many other modern features.
@johnny-mnemonic13
@johnny-mnemonic13 3 жыл бұрын
this video sucked,, didn't get into using exit codes in depth. Started off right but then veered into operators. Fail.
@kubucation
@kubucation 3 жыл бұрын
Thanks for your feedback. Feel free to list exit-code related topics you were missing. I can always add an additional more in-depth video later on.
@johnny-mnemonic13
@johnny-mnemonic13 3 жыл бұрын
@@kubucation well what I was really confused is why use exit codes within bash script. Then when and where to use them within the script as well. I did some more searching and I think I got it, so I'm good with that. Now I just learned that the RHCSA exam got updated to include containers? I'm like geezer, there's hardly any good material covering these so I'm f'd if I don't find something soon as I am like 80% ready for the exam. If you can cover this to the exam requirements you got yourself a subscriber and likes.
Learning Awk Is Essential For Linux Users
20:02
DistroTube
Рет қаралды 289 М.
아이스크림으로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 56 МЛН
LOVE LETTER - POPPY PLAYTIME CHAPTER 3 | GH'S ANIMATION
00:15
DO YOU HAVE FRIENDS LIKE THIS?
00:17
dednahype
Рет қаралды 101 МЛН
Can You Draw A PERFECTLY Dotted Circle?
00:55
Stokes Twins
Рет қаралды 36 МЛН
BASH Environment | Aliases, Functions and Scripts
49:26
Joe Collins
Рет қаралды 89 М.
Terminal vs. Bash vs. Command line vs. Prompt
11:06
Luke Smith
Рет қаралды 232 М.
Getting exit status code in C
9:43
CodeVault
Рет қаралды 37 М.
you need to learn BASH Scripting RIGHT NOW!! // EP 1
12:14
NetworkChuck
Рет қаралды 976 М.
grep: All you need to know | #6 Practical Bash
11:14
kubucation
Рет қаралды 19 М.
Some bashrc recommendations and what I use
19:17
Luke Smith
Рет қаралды 113 М.
PART 52 || DIY Wireless Switch forElectronic Lights - Easy Guide!
1:01
HUBAB__OFFICIAL
Рет қаралды 48 МЛН
Samsung Galaxy 🔥 #shorts  #trending #youtubeshorts  #shortvideo ujjawal4u
0:10
Ujjawal4u. 120k Views . 4 hours ago
Рет қаралды 6 МЛН
Зачем ЭТО электрику? #секрет #прибор #энерголикбез
0:56
Александр Мальков
Рет қаралды 339 М.
Klavye İle Trafik Işığını Yönetmek #shorts
0:18
Osman Kabadayı
Рет қаралды 3,2 МЛН
НЕ ПОКУПАЙ СМАРТФОН, ПОКА НЕ УЗНАЕШЬ ЭТО! Не ошибись с выбором…
15:23