← Command encyclopedia

dirname

Strip the last component from a path.

Executable in the CoreQ simulator

Syntax

dirname PATH

Practise it now in the Linux sandbox. Type man dirname there for a quick summary.

Related commands

basenamepwdcdlstreemkdirrmdirtouch