CLEANNAME(1)
π CLEANNAME(1) Β· General Commands Manual Β· clean a path name π
π NAME π
cleanname β clean a path name, bestie β¨
π SYNOPSIS π
cleanname [ -d pwd ] names ...
π οΈ DESCRIPTION π οΈ
okay so for each file name argument, cleanname does its thing by lexical processing only β no cap, no filesystem side quests β and prints the shortest equivalent string that names the same (possibly hypothetical) file π.
It eliminates:
- multiple slashes
- trailing slashes
and it lexically interprets . and .. directory components in the name π.
the-d pwdglow-up: if the-doption is present, unrooted names are prefixed withpwd/before processing π¦.
π SOURCE π
/src/cmd/cleanname.c
π SEE ALSO π
cleanname(3)β go read the section 3 bestie, iykyk π
π that's the whole CLEANNAME(1) wrap-up from the General Commands Manual β mwah! π
π¦ where this page comes from
- alpine 3.24: plan9port-doc 0_git20260208-r0 Β· LPL-1.02
- arch rolling: plan9port 20261021-2 Β· custom
- nixos 26.05: plan9port 0-unstable-2025-11-10
- nixos 26.05: plan9port-wayland 0-unstable-2025-11-26
- nixpkgs unstable: plan9port 0-unstable-2025-11-10
- nixpkgs unstable: plan9port-wayland 0-unstable-2025-11-26
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms