you need to learn BASH Scripting RIGHT NOW!! // EP 1

About this video

In episode 1 of his Bash scripting series, NetworkChuck introduces Bash — the Bourne Again Shell — as both the Linux command-line interface and a scripting language for automating anything you would type in the shell. To practice, he spins up a cheap cloud Linux instance on Linode (noting new users get a $100 credit for 60 days, and that an instance otherwise costs about one cent per hour), connects over SSH, and confirms the shell with the which $SHELL command. He writes a first script in the nano editor: a first script file that starts with the shebang line #!/bin/bash followed by echo commands, using sleep commands to pace a short scripted conversation. He runs it by invoking bash with the script name, then explains the more common direct ./ method, why it initially fails with permission denied, how to inspect permissions with ls -l, and how to add execute permission with chmod +x so the script runs directly. He closes by deleting the cloud instance so charges stop.

Key takeaways

  • Bash is both the Linux shell you type commands into and a scripting language; a Bash script is simply shell commands saved in a file to run automatically
  • Every script should start with the shebang #!/bin/bash so the system knows which interpreter to use
  • Create and edit scripts with a text editor such as nano, using commands like echo for output and sleep to pause between steps
  • A script can be run with bash <script>, but running it as ./<script> requires execute permission
  • If you get permission denied, check permissions with ls -l and add execute permission with chmod +x <script>

Episode details: published March 25, 2022 · 12:14 long. Summary written by Self Growth Videos from the episode itself. Business results and any income figures mentioned are NetworkChuck’s own claims, shared for education — they are not typical or guaranteed.


← Previous: If His First PC Boots, He Wins $10,000 · Next: what is an IP Address? // You SUCK at Subnetting // EP 1 →

All NetworkChuck videos · NetworkChuck profile · NetworkChuck on YouTube

Sister brand · Vacation Club Promo

All-inclusive resort stays from $435

Qualified couples: promotional Mexico and Caribbean packages at real resorts. Short presentation during your stay — enjoy the rest of the trip.

Qualifications apply · presentation during stay · no purchase required

Subscribe YouTube Suggest