HF RL Explorer

Task: Add Execute Permission to File Using Python

Task: Add Execute Permission to File Using Python: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Python script that adds the executable permission ( u+x ) to a file while preserving all existing permissions. This should work similar to the Unix command chmod +x filename , which…

The task

You need to write a Python script that adds the executable permission (`u+x`) to a file while preserving all existing permissions. This should work similar to the Unix command `chmod +x filename`, which adds the execute permission without modifying other existing permissions.

Part of PrimeIntellect/Terminal-Lego-15k.