vi ./{file_name}.sh
Enter in code
#!/bin/bash echo hello
This will make the file executable
2. chmod +x ./{file_name}.sh
chmod +x ./{file_name}.sh
This will run the script
3. ./{file_name}
./{file_name}
Example output
hello
Last updated 3 years ago