Write Your Own Bash Scripts for Automation [Tutorial]

preview_player
Показать описание

Make Custom Bash Scripts to Automate Linux Tasks

Cyber Weapons Lab, Episode 209

Bash is a simple scripting language that's useful for chaining together various Linux tools without requiring you to learn any programming. In this episode of Cyber Weapons Lab, we'll use aliasing to call programs and then use Bash to automate tasks.

Follow Null Byte on:
Рекомендации по теме
Комментарии
Автор

This is my kind of guy. His eyes tell me he's wasted no more than 3 hours sleeping since birth.

zephyrus
Автор

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. 🙌🏼

nickopop
Автор

Dude where have you been? I was about to call 911 and report you as missing. Glad you are back.

jasonpitts
Автор

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.

hyryifh
Автор

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.

kevin_delaney
Автор

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}'"`.

sebastiansimon
Автор

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!

druzod
Автор

Thank you for showing the error you ran into and the work arounds in the video.

ramgopalvarma
Автор

just getting started with Linux Mint on a VM. This video just taught me so much. thank you :)

AmbushEveryone
Автор

This guy explains it better than my professor did last week

jonyboi
Автор

thanks from France!! I can't wait for the next video about bash scripting ! :)

Neodeejay
Автор

Just what I needed. I was literally just thinking about this! Thumbs up

garcand
Автор

Writing bash scripts has saved me thousands of hours over the years. Thank you for the video, this is incredibly useful.

Alex-ucye
Автор

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 <scriptname>` 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.

AstroDenny
Автор

Been trying to execute a bash file forever! First resource that actually helped!

chffguy
Автор

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.

danlule
Автор

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.

rodrigito
Автор

Amaizing, i did this tutorial on termux(android), works like magic! Thanx alot!

tamirmaidani
Автор

I taught my self this exact thing for batch scripting, time to learn bash!

oxycodin
Автор

A lot of power to the user. Very useful.

HikikomoriDev
visit shbcf.ru