Exercise_ File Permission

pdf

School

Eastern Michigan University *

*We aren’t endorsed by this school

Course

381

Subject

Information Systems

Date

Feb 20, 2024

Type

pdf

Pages

3

Uploaded by CorporalSquirrelPerson1025

Report
Exercise: File Permission Solution 3. Run test.py using the following command: ./test.py Snapshot: Question 1 : It will give you an error, why? Answer: Because we do not have permission to execute the program. 4. Task: Use chmod to add execute permission to test.py Snapshot: 5. Run test.py again using the following command: ./test.py Snapshot: Question 2 : It will give you another error, why? Answer: Because we are not running it as a python program, we are running it as bash, so the syntax is incorrect.
7. Use chmod to add execute permission to test2.py Snapshot: 8. Run the test2.py using the following command: ./test2.py Now it should work. Snapshot: 9. Run the test2.py using the following command: test2.py Snapshot: Question 3 : Again, it will give you an error, why? Answer: Because you are trying to run a program that is not in the specified path, so the terminal cannot find the program you are trying to run. 10. Task: Now add the current working directory to your PATH environment variable Snapshot: 11. Run test2.py again: test2.py
Now it should work. Snapshot:
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help