Make a file executable
Quest: make-file-executable
Mission
Create a harmless playground file and make it executable.
Commands You Will Use
touchchmodls -l
Steps
- Run
touch ~/playground/permission-test.txt. - Run
chmod u+x ~/playground/permission-test.txt. - Run
ls -l ~/playground/permission-test.txtand confirm the owner triplet hasx. - Run
guide checkto check the file and executable bit.
Hints
chmod u+xadds execute permission for the owner.ls -lshould show anxin the owner triplet.- The file does not need script content yet. S5 teaches shebangs and scripts.
If Check Fails
Rerun chmod u+x ~/playground/permission-test.txt, then check the owner execute bit with ls -l.

Linux Foundations