HF RL Explorer

Task: Set Current Working Directory to Script's Location in Bash

Task: Set Current Working Directory to Script's Location in Bash: a task in Terminal-Lego-15k (Harbor dataset). Write a Bash script that automatically changes the current working directory to the directory where the script itself is located, regardless of where the script is called from.

The task

Write a Bash script that automatically changes the current working directory to the directory where the script itself is located, regardless of where the script is called from.

Part of PrimeIntellect/Terminal-Lego-15k.