---
name: "rust-dirname"
section: "1"
platform: "linux"
package: "rust-coreutils"
version: "0.0.30-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rust-dirname"
---

# rust-dirname(1)

Strip last component from file name

## NAME

dirname - Strip last component from file name

## SYNOPSIS

**dirname** \[**-z**\|**--zero**\] \[**-h**\|**--help**\] \[**-V**\|**--version**\] \[*dir*\]

## DESCRIPTION

Strip last component from file name

## OPTIONS

- **-z**, **--zero**

  separate output with NUL rather than newline

- **-h**, **--help**

  Print help

- **-V**, **--version**

  Print version

## VERSION

v0.0.30
