DIRNAME(1) dirname -- dirname [] ... , , , ; <>, <<.>> ( ). -z, --zero NUL --help --version dirname /usr/bin/ -> "/usr" dirname dir1/str dir2/str -> "dir1", "dir2" dirname stdio.h -> "." (David MacKenzie) (Jim Meyering). - GNU coreutils: Copyright (C) 2024 Free Software Foundation, Inc. GPLv3+: GNU GPL 3 . : . , . basename(1), readlink(1) , info '(coreutils) dirname invocation' () ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. GNU coreutils 9.5 2024 . DIRNAME(1)