HF RL Explorer

Task: Get Current Directory Name Without Full Path

Task: Get Current Directory Name Without Full Path: a task in Terminal-Lego-15k (Harbor dataset). In bash scripting and terminal operations, pwd returns the full path of the current working directory (e.g., /opt/local/bin ). However, sometimes you only need the name of the current directory itself…

The task

In bash scripting and terminal operations, `pwd` returns the full path of the current working directory (e.g., `/opt/local/bin`). However, sometimes you only need the name of the current directory itself (e.g., just `bin`), without the full path.

Part of PrimeIntellect/Terminal-Lego-15k.