dirname

From wikieduonline
Revision as of 10:12, 28 March 2024 by Welcome (talk | contribs) (→‎Related terms)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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: