Hands-on task
This task is step 11 of the course “First steps in Linux”
Make a script executable and run it
A colleague left the script /root/tools/backup.sh and asked you to run it. But running it gives Permission denied — the file has no execute permission.
Give the file execute permission and run the script. If all goes well, it creates the report /root/tools/report.txt by itself. Don't change the script.
What you'll practise:
- chmod +x
- running scripts
- ./
- execute permission