# dirname — folder from a path

`dirname` — folder from a path.

## Example

```bash
dirname /home/user/file.txt
```

This site also runs the command in a browser terminal simulator, so the examples above
can be typed and executed without installing anything.

Source: https://zero2vibecode.com/commands/dirname
