```sh
var = basename path
```
This command will return the last path element of the provided path.<br>
If unable, it will return none.
The path to extract the last element from.
The last path element or none if unsuccessful.
```sh
file = basename ./dir/file.txt
```