Writing your First Shell Script for Linux Tutorial

  • 🎬 Video
  • ℹ️ Description
preview_player
UCf93fPKwotph47H3_KDcRyg


Playlist


This video was sponsored by:
Karl Arvid
Steven C. Morreale


💬 Comments
Author

Studying informatics at the university in Ghent and this is my last resort for the exam coming tomorrow, thanks for helping me out!

Author — Bauke Blomme

Author

Good learning, very nice and interesting way to learn something new...thanks!

Author — Pranav Parashar

Author

Very helpful - thank you! Do you happen to know if I can write a script that would be triggered by a specific key combination (rather than upon start-up)? And is it possible to use scripts to check and report on the status of other apps that are running? In particular I'm making an external button that I'd like to run a script that will tell me if zoom is open, and if zoom is muted. I know mac os does this, but not sure how to accomplish with linux.

Author — Matt Moves Mountains

Author

Great video. The only thing I would suggest adding is what the -p and -e mean. I understand when to use them in the given context of the video, but don't feel it was explained what they mean so I am not sure how else I can use them in the future.

Author — Corrina Lakin

Author

Universities focuses on programs and scripts while the students don't understand the language. This video is a lifesaver

Author — hawk eye

Author

Thank you so very much, this helped me start my assignment. THANKS A LOT

Author — Davinder Evolution

Author

thank you for the short effective tutorial.

Author — rgh1986aka199

Author

Easy, straight to the point... All I needed. Thanks!

Author — Luis Alfonzo González

Author

How do I write a script that ask for a user name when opening the shell?

Author — Jason Thomas

Author

Getting this to work took me a bit. At first i was in Vi instead of VIM pretty easy update but holy god does it make the text editor so much better!!!

sudo apt-get install vim

type that in and use vim instead of vi for text edit. Life = better!
1. you can use arrow keys to navigate lines of your script.
2. It has syntax highlighting and suggestions. As long as you save it as a .sh for a bash script. It will highlight bash commands etc...

Author — Jericko Doggo

Author

Your video are very helpful really... could u make a tutorial of guess the word just like u have made guess the number?

Author — Misha

Author

Dude, you are a legend. thank you so mucn!

Author — Abed Ahmed

Author

damn your soo good you dont even tought how to save the file G E N I U S

Author — Davide Areias

Author

do we need a particular distro or any linux distro will work?..i have kaliu and mint, which will be more useful for shell scripting

Author — Ashish Rout

Author

You showed how to read a file, and you already had one created to show, but you should've just shown us how to create one and used that one so it is easier to follow along :)

Author — Heavily Armed Clown

Author

are you using any special colorscheme for your vim?

Author — Duc Hieu Nguyen

Author

Could u make a tutorial of jumbled word game?

Author — Misha

Author

great to the point tutorial. just awesome. alias thischannel='echo "freakin awesomel"'

Author — TheBinarydeity

Author

how would I create a custom command 'mvt' that automatically moves 'trash' files to directory ~/Trash ?

Author — greatsea

Author

1st, thank you for this quick tut on scripting!!! I am trying to learn how to make a script to do some rather complex things for a class. And this really helped get me in the door.

2nd, I think this video helped me enough to write the code. However, I would like to know a bit more. Like what chmod +x [FILENAME] actually does.

3rd, if I'm looking to write a code that will have different methods, will I be able to write the code in the same way I would a python file that uses a console or a java file that uses a console or gui? (looking to run methods in a code)

Author — Caleb Marcum