Thiên Nhạc Tâm
New member
How do I create a script in Linux?
Answer
How to Write Shell Script in Linux/Unix
Answer
How to Write Shell Script in Linux/Unix
- Create a file using a vi editor(or any other editor). Name script file with extension . sh.
- Start the script with #! /bin/sh.
- Write some code.
- Save the script file as filename.sh.
- For executing the script type bash filename.sh.