How To Write A Batch Script In Linux . For example, you might want to name it hello_world.bat. Scripting is a way by which one can alleviate this necessity by automating these command sequences in order to make one’s life at the shell easier and more productive. How To Create Simple Shell Script from mytecharticle.com Now type the following [be sure to type the dot slash before it!]: How to write linux batch file? 1.2 things to do before you run any linux jobs on the nodes.