Work with the filesystem and permissions
Practice using file permissions to set execution bit
- There are three python scripts, find them using the
find
command:find -name "*.py"
- How many did you find and where are they located?
- Now run one of them as a script using this syntax:
./one.py
- What went wrong?
- Change the file to be executable using the following chmod command:
chmod +x one.py
- Run it again. Did it work? Why?
- Change all Python code to be executable recursively using the following command:
chmod -R -x *.py
- What did this command do?