To execute the script you created (script.sh), follow these steps:
-
Make the Script Executable: First, you need to add execute permissions to the script. Run the following command:
chmod +x script.sh -
Run the Script: After making it executable, you can run the script using:
./script.sh
Summary:
chmod +x script.sh: Grants execute permission to the script../script.sh: Executes the script in the current directory.
If you have any further questions or need assistance, feel free to ask!
