Video Title: Bash in 100 Seconds
Bash a command language interpreter for interacting with a computer from the command line it’s also called a shell because it surrounds the operating system kernel to hide its intricate details while allowing you the programmer to do important stuff like access data and write files by typing simple commands this was a revolutionary
Concept when it was developed in the early 70s back when programmers were still using punch cards the shell concept evolved over the years with the bourne shell being the most popular version that is until 1989 when the born-again shell or bash came about when you open up the terminal on a unix
Machine like mac os and most linux distros the default shell is usually bash it provides a prompt where you can type a command which will then be interpreted by the shell and executed on the operating system to find out if you’re running bash type in which dollar
Sign shell from the command line it’s like any other application that lives in the binaries directory but bash is also a programming language that allows us to write scripts which means anything we type manually into the command line can be automated with code when you first launch the shell it actually runs a
Startup script that’s defined in the bash profile or bashrc file on your system this allows you to customize the behavior and appearance of the shell whenever you start a new session you can add your own custom bash scripts to any project by creating a file that ends in
Dot sh for no file extension at all the first line in that file should always be a shebang followed by the path to the application that should run it below that we can start writing commands like echo to print something and they’ll be interpreted line by line to create a
Variable type a name in all caps followed by the equal sign then reference it later in the script using a dollar sign in front of the name now to execute the script simply type the file name into the shell that was easy but what if we want to pass in some
Arguments when we run the script positional arguments will automatically be assigned variable names of 1 2 3 and so on now in other cases you may need additional user input in the middle of a script you can create loops in bash like a do while loop here that will prompt
The user to continue the script on a yes answer or exit on a no answer from there we can implement conditional logic with an if statement which will test if the value on the left side is less than the value on the right side if true then run
This command otherwise run the else command another cool feature is that if you have multiple long running processes you can run them in parallel in the background by adding an ampersand after the command this has been bash the born-again shell in 100 seconds if you want to see more short videos like this
Make sure to hit the like button and subscribe thanks for watching and i will see you in the next one
-
Sale!
Wireless WIFI Repeater Extender Amplifier Booster 300Mbps
$29.99$14.99 Add to cartWireless WIFI Repeater Extender Amplifier Booster 300Mbps
Categories: Electronics, Wi-Fi Router, Wireless Wi-Fi Extender Tags: 300Mbps, 802.11N, Amplifier, Booster, Extender, mobile wi-fi booster, Remote, WIFI, Wireless, Wireless WIFI, Wireless WIFI Repeater, Wireless WIFI Repeater Extender, Wireless WIFI Repeater Extender Amplifier, Wireless WIFI Repeater Extender Amplifier Booster, Wireless WIFI Repeater Extender Amplifier Booster 300Mbps$29.99$14.99 -
Sale!
Full RGB Light Design Gaming Headset Headphones with Mic
$24.99$14.99 Add to cartFull RGB Light Design Gaming Headset Headphones with Mic
Categories: Electronics, Gaming, Gaming Headsets Tags: Design, Full, Full RGB Light Design Gaming Headset, Full RGB Light Design Gaming Headset Headphones, Full RGB Light Design Gaming Headset Headphones with Mic, Gamer, Gaming, Gaming Headset Headphones, gaming headset wireless, Headphone, Headphones, Headset, Light, Mic, Package, RGB$24.99$14.99 -
Sale!
Wireless BlueTooth Multi-Device Keyboard Mouse Combo
$39.99$19.99 Add to cartWireless BlueTooth Multi-Device Keyboard Mouse Combo
Categories: Electronics, Gaming, Gaming Keyboards, Keyboard Mouse Combos Tags: Combo, Keyboard, keyboard mouse combos, Mouse, MultiDevice, Set, WireKeyboard Mouse Combo, Wireless, Wireless BlueTooth Keyboard Mouse Combo, Wireless BlueTooth Keyboard Mouse Combos, Wireless BlueTooth Multi-Device Keyboard Mouse Combo, Wireless BlueTooth Multi-Device Keyboard Mouse Combos$39.99$19.99 -
Sale!
High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar
$199.99$139.99 Add to cartHigh Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar
Categories: Gaming, Gaming Chairs Tags: Adjustable, Chair, computer chairs, Desk, Executive, Gaming, Girl, Headrest, High, High Back Leather Executive Adjustable Swivel Gaming Chair, High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest, High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar, High Back Leather Executive Adjustable Swivel Gaming Chairs, Leather, Lumbar, Office, Racing, Swivel$199.99$139.99 -
Sale!
Professional LED Light Wired Gaming Headphones with Noise Cancelling Microphone
$29.99$19.99 Select optionsProfessional LED Light Wired Gaming Headphones with Noise Cancelling Microphone
SKU: N/A Categories: Electronics, Gaming, Gaming Headsets Tags: Cancelling, Gaming, Gaming Headphones with Noise Cancelling Microphone, gaming headset, Headphones, Headset, LED, Light, Mic, Microphone, Noise, Professional, Professional LED Light Wired Gaming Headphones, Professional LED Light Wired Gaming Headphones with Noise Cancelling Microphone, Wired, Wired Gaming Headphones, Wired Gaming Headphones with Noise Cancelling Microphone$29.99$19.99 -
Sale!
Gaming Desk with LED Lights USB Power Outlets and Charging Ports
$349.99$249.99 Select optionsGaming Desk with LED Lights USB Power Outlets and Charging Ports
SKU: N/A Categories: Computer Desk, Gaming, Gaming Desk Tags: and Charging Ports, Charging, Desk, Desks, Gaming, gaming desk with led lights, Gaming Desks with LED Lights, Home, LED, Lights, Monitor, Office, Outlets, Port, Power, Room, Stand, USB, USB Power Outlets, White, Workstation$349.99$249.99 -
Sale!
Wired Mixed Backlit Anti-Ghosting Gaming Keyboard
$99.99$79.99 Add to cartWired Mixed Backlit Anti-Ghosting Gaming Keyboard
Categories: Electronics, Gaming, Gaming Keyboards Tags: Antighosting, Backlit, Blue, brown, Gaming, Gaming Keyboard, gaming keyboards, gaming keyboards and mouse, Keyboard, Laptop, Switch, Wired, Wired Mixed Backlit Anti-Ghosting Gaming Keyboard, Wired Mixed Backlit Anti-Ghosting Gaming Keyboards, Wired Mixed Backlit Gaming Keyboard$99.99$79.99 -
Sale!
Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset
$119.99$59.99 Add to cartWireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset
Categories: Electronics, Gaming, Gaming Headsets Tags: 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset, ANC, Audio, Bluetooth, Cancellation, Ear, Earphone, gaming headset, Headphones, Headset, Hi-Res Over the Ear Headphones Headset, HiRes, Noise, Wireless, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Headphones, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headsets$119.99$59.99 -
Sale!
Wired Sports Gaming Headset Earbuds with Microphone
$19.99$9.99 Select optionsWired Sports Gaming Headset Earbuds with Microphone
SKU: N/A Categories: Gaming, Gaming Headsets Tags: Accessories, Earbud, Earphone, Earphones, Gaming, gaming headset with microphone, Headphones, Headset, IOS, Microphone, Sports, Wired, Wired Sports Gaming Headset Earbuds, Wired Sports Gaming Headset Earbuds with Microphone, Wired Sports Headset Earbuds$19.99$9.99 -
Sale!
150W Universal Multi USB Fast Charger 16 Port MAX Charging Station
$49.99$29.99 Add to cart150W Universal Multi USB Fast Charger 16 Port MAX Charging Station
Categories: Charging Stations, Electronics Tags: 150W, 150W Charging Station, 150W Universal Multi USB Charging Station, 150W Universal Multi USB Fast Charger 16 Port MAX Charging Station, 150W Universal Multi USB Fast Charger 16 Port MAX Charging Stations, 150W Universal Multi USB MAX Charging Station, 16 Port MAX Charging Station, 3.5A, Charger, Charging, Fast, laptop charging stations, Max, Multi, Port, Stand, Station, Universal, USB$49.99$29.99
Im a windows user💀💀💀
the more i learn about the low levels and the history of computing… the more i freak out about the universe. it's just so analogous. everything starts out simple and adds in complexity, but as complexity grows then so does the need for abstraction. at infinite complexity, something (everything?) must be infinitely abstract.
it seems to me that simulation theory isn't so silly. everything i know of physics and philosophy (not much) seems to point to this kind of "no matter where you look, if you look hard enough you will always find some kind of recursion or self reference, as though you are prevented from knowing the final answer, the last variable in the equation"
Do 100 secs Powershell!
Daaaaaaaamn!! the music used in the background made me eager to learn every single command in bash
Why do you call your videos "in 100 seconds", when every single one of them is longer than 2 minutes?
I like this 100-second video style better than the new ones. 🙂
Just wow. 20 yrs a software developer, having come full circle back to c++ origins, I never realized how similar ecmascript syntax is to C
100 seconds really ?
2:04 Love that infinite beer drinking loop
Very informative in small package.
song name?
the puns inside this video are just crazy 😂😂
can we use bash script to write on smart contracts and develop a blockchain?
can this be an alternative to solidity?
Freertos
can you use bash to schedule code to run at certain time each day?
Ynn bnb
M I’m.
me running my script.docx like a boss
Fireship is literally turning the topics that I am scared of thinking It's too hard to easy labeled ones. Thanks Fireship!
I think & at the end of command just returns shell to you for entering new command and won't send execution to the background. For putting execution at background, we can use supervisorctl or "nohup <your command> &"
Superb
fireship is legitt fireee
So the same guy who made shell, also created go
A VARIABLE DO NOT HAVE 2B ALL CAPS lol
"which $SHELL" is not going to tell if you are currently running BASH. It's going to tell you what's the location of your default shell which is not necessarily the shell you're currently running. 😂
Powershell in 100 seconds.
You should've said….
"If you wanna see more videos like this make sure you BASH that linke button and subscribe"
Missed an opportunity there.
when I checked, my mac terminal said @SHELL not found
do one for tcl
Bash has saved my butt so many times in development. Need to run a RESTful api several hundred times to test vulnerabilities? Bash is the answer.
Comparing this Fireship video to the present ones, theres a lot of difference in cadence, delivery and speed. This video is more chill and laid back compared to his current videos.
hi
10 ways to count to 100 in 100 seconds would be cool.
Imma #! you
What is zsh?
Thank You Bro for this wonderful video…….🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
thankyou
bash is a meme
I know bash from termux😅
if you do batch in 100 seconds (my fauvorite language) i will print your channel everywhere on the whole country i live in and go to fireshipland
At first, bash seems a little hard, but later, as you continue learning, it feels like super fun!
The person who watches your videos must know everything about computer😢
That "bourne" -> "born again" evolution taught me how old the tradition of nerdy play on words is for programmers, even very important programmers.
My favourite one is "Nero Burning ROM", it's just so perfectly layered.
0:18 the same Ken Thompson was also a part of Golang programming language creation.. 😳
useless 100 seconds
There's so many other cool features you missed, pipes, redirecting output, nested functions that you can use as inputs for another command… There's a lot you can do in bash today.
Actually is zsh the default shell of the last few macOS versions
my professor in college says the word BASH stands for Boring Again Shell
I’m now an expert
I don't think it would take you even 100 seconds to summarize the critical translations between bash-like and csh-like shells. Fireship gets a "don't recommend this channel" for spamming us with the 100 seconds crap.