dirname

From wikieduonline
Jump to navigation Jump to search

dirname [1] command included in coreutils package.

cd -- "$(dirname "$0")"
dirname -- "$0";
dirname -- "$( readlink -f -- "$0"; )";

Related terms

See also

  • https://man7.org/linux/man-pages/man1/dirname.1.html
  • Advertising: